I want a flag for MoveEntity, so the entity will never move through objects. At the moment if the program hangs for a second while the player is moving the player goes a step larger than the object he's colliding to and the player will go through it.
It would be useful to check in steps (dependent on the size of the object which is moving).
This would be normal:
Code: Select all
Time before lag:
Player - Wall - Other side
Time after lag:
Player- Wall - Other side
Code: Select all
Time before lag:
Player - Wall - Other side
Time after lag:
First side - Wall - Player
Daniel