platformer collision detection trouble

BlitzPlus Forums/BlitzPlus Programming/platformer collision detection trouble

skyfire1(Posted 2005) [#1]
i'm trying to make a sonic clone but i can't seem to figure out how to do the collision detection. how do you check collisions with a platformer game. any help appreciated.


thalamus(Posted 2005) [#2]
There are a couple of ways to do this with a Tile-based game like Sonic:

a) Check the player sprite against the surrounding tiles

b) Check the player sprite against a collision map

Have a look through the code archives, there are a number of useful articles and code snippets.


skyfire1(Posted 2005) [#3]
i know how to make and use a map editor but i can't seem to figure out how to deal with the collision tiles. i looked in the code archives but my question remains unanswered


thalamus(Posted 2005) [#4]
Here's a good starting point:

http://www.blitzcoder.com/cgi-bin/articles/show_article.pl?f=gamekrylar01282001.html


skyfire1(Posted 2005) [#5]
thanks.


Baystep Productions(Posted 2005) [#6]
I drew it first, test collision move based on speed (ie sloowdown gravity) draw again, test again. Then Clear screen, and with retro clones it's okay to be slow. In fact almost better.