Search found 6 matches

by l0ki77
Sat May 06, 2023 7:42 pm
Forum: Support and Development
Topic: Coin keeps spazzing out when collision code is added
Replies: 5
Views: 1592

Re: Coin keeps spazzing out when collision code is added

Hi Your coin is too big and so it collides every frame. love.graphics.getWidth() / Height() get the size of the window. I guess you will want to use https://love2d.org/wiki/Texture:getWidth but for testing I just put fixed numbers: function Coin:new() self.image = love.graphics.newImage('sprites/co...
by l0ki77
Sat May 06, 2023 9:37 am
Forum: Support and Development
Topic: Coin keeps spazzing out when collision code is added
Replies: 5
Views: 1592

Coin keeps spazzing out when collision code is added

Hello I've been trying to make a game for school and every time I add collision detection code to my project my object which is a coin keeps spazzing out without the player even touching out. The coin just goes all over the screen randomly with the player having any interactions with. I've tried rem...
by l0ki77
Sat Apr 29, 2023 5:06 am
Forum: Support and Development
Topic: LUA attempt to index global anim8 a nil value
Replies: 2
Views: 1094

Re: LUA attempt to index global anim8 a nil value

Problem solved. Thanks
by l0ki77
Sat Apr 29, 2023 1:29 am
Forum: Support and Development
Topic: How would i detect collison between a player and object using box2d
Replies: 2
Views: 691

How would i detect collison between a player and object using box2d

Hello I am currently making a game for my class and I was wondering how I would detect Collison between a Player and object using box2d. I would also wondering how you could spawn the object that the player collided with in a random location on the tiled map through the lenses of a camera.
by l0ki77
Fri Apr 28, 2023 11:26 pm
Forum: Support and Development
Topic: LUA attempt to index global anim8 a nil value
Replies: 2
Views: 1094

LUA attempt to index global anim8 a nil value

Hello I'm a creating a game project for my class and I keep getting the error "attempt to index global anim8 a nil value", which I've tried to figure out for the past couple of hours. I have tried extending anim8 to Player but also get the same error. Main.lua function love.load() Object =...