Re: [library] bump.lua v3.1.4 - Collision Detection
Posted: Sat Mar 19, 2016 3:03 pm
I think I found a bug or I do something horribly wrong.
For my current project I need that the player can move out of screen on one side (x or y axis) and then gets
teleported to the opposit side. I made up an simplified example to make sure that its not a problem in my game code.
It should look like this:
The red box gets teleported to the opposit side.
Now what happens when I move out of the screen and Im directly above or underneath (or left of or right of) a collidable object is
that a collision gets detected without that the red box is even near the other object.
(note: everytime you see the red box spawn underneath means that it detected a collision -> the object get
deleted and I had to reset the game)
löve file:
For my current project I need that the player can move out of screen on one side (x or y axis) and then gets
teleported to the opposit side. I made up an simplified example to make sure that its not a problem in my game code.
It should look like this:
The red box gets teleported to the opposit side.
Now what happens when I move out of the screen and Im directly above or underneath (or left of or right of) a collidable object is
that a collision gets detected without that the red box is even near the other object.
(note: everytime you see the red box spawn underneath means that it detected a collision -> the object get
deleted and I had to reset the game)
löve file: