bump.lua - push passiv object
Posted: Fri May 03, 2019 10:34 am
Hey lovers,
im working on a little platform-like game with traps and items that can push the player. A goal is, that the player could not resist againt the pushers or walls. I am working with bump for the collision detection.
In the attached demo i have a player-object and a wall who pushes the player from left to right. this works basically.
BUT: sometimes the player is pushed 12px/dt, sometimes 1px/dt and i have no idea what the problem is.
I guess that the problem comes from the update order. So i want to push the player-object, but before i can do that i collide with it and so i dont move forward. Something like that.
Mayby i have a understandig-problem how to work correct with bump.
Has anyone a idea how to handle this?
Thanks!
ertt
im working on a little platform-like game with traps and items that can push the player. A goal is, that the player could not resist againt the pushers or walls. I am working with bump for the collision detection.
In the attached demo i have a player-object and a wall who pushes the player from left to right. this works basically.
BUT: sometimes the player is pushed 12px/dt, sometimes 1px/dt and i have no idea what the problem is.
I guess that the problem comes from the update order. So i want to push the player-object, but before i can do that i collide with it and so i dont move forward. Something like that.
Mayby i have a understandig-problem how to work correct with bump.
Has anyone a idea how to handle this?
Thanks!
ertt