Skip to main content

Timeline for Multiple overlapping rectangles

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Dec 11, 2015 at 23:29 vote accept Jelle
Nov 30, 2015 at 17:51 comment added Felsir No you wouldn't. In your example (next to you, under you) first the tile next to you would be resolved- the player character will be pushed out the tile. So position and collision rectangle is updated. Now the for loop continues, the tile below triggers a collision and the player is pushed upwards out of that collision. This is how collisions are resolved in order.
Nov 30, 2015 at 16:22 comment added Jelle Do I still need booleans to "move the player out of collision position"? Because I don't know how to do it without booleans (for example when there is a block next to you and under you).
Nov 29, 2015 at 21:29 comment added Felsir The player and tile classes have the handlecollision methods.
Nov 29, 2015 at 21:15 comment added Jelle Thank you, I will try this as soon as possible! But are the HandleCollision methods implemented in different classes, like a Player and Tile class ? (I have these classes)
Nov 29, 2015 at 19:32 history answered Felsir CC BY-SA 3.0