Discuss Scratch

argetIam
Scratcher
6 posts

Side Scrolling Collisions

I have a tile scrolling engine that I have created that uses x_position and y_position lists to hold the initial positions of the tiles that are created. I then stamp them to the screen if they are within visible range. I also have a player that moves 8 pixels at a time (the size of the tiles are 8x8 pixels). If the player itself is, say, 8n*8m pixels in size, where n and m are integers, how would I add collisions to the player? Here is the link to the project:
Tile Scrolling

Powered by DjangoBB