Interlude: Collision Problem Solved


Partly thanks to the guys and gals at, I solved the problem I had with the collision detection. It is essentially the same approach I already tried, twice, but apparently now I did it correctly. I have a two-dimensional array, in which every actor in the scene stores their position, and if a tile is occupied, no other actor can move onto it. When an actor leaves a tile, it is set to unoccupied again. I also used this array to create a boundary around the game world to keep the player and the enemies on it.


Your email address will not be published. Required fields are marked *