Sure, no college for a few days so we can totally work on that.
Hey, how do you have an if clause where you say that something is not equal to whatever it is your comparing?
I thought it was ~= but I don’t think so anymore because it doesn’t work.
local bod = bodies[math.ceil(touch.x/32)][math.ceil(touch.y/32)]
if bod not == nil then
bod:destroy()
end
I don’t think destroy() deletes the variable, the variable is still a body, it just doesn’t interact with its surroundings, so I think body:destroy() then body == nil should do the trick. Lemme guess, you are fixing the bug where if you tap an empty area it crashes?
Well, unfortunately, I have to go assist my aunt, so I may be unavailable for a while. (I could still operate off my phone, but no code would be tested. X()
I had a problem with the drawing speed for a game I was making. I got around it by drawing the tiles onto an image object, then displaying the image every frame instead of drawing each tile individually.
Please don’t post links to the Junk Jack art assets. They are copyright and the developer put in a lot of hard work to make them for his game. I’ve removed the link.