Platformer Platforms / collission?

Started by
4 comments, last by TheCompBoy 12 years, 8 months ago
hello guys!

I've been trying to figure out now if i have a map in my platformer game and i want my character be able to jump on some platform for example.. Is there any easy way to tell the game where the platforms are and where the player can jump and start??

Also the games like Super Mario Bros and such are their maps made in .txt files ? Because i watched a tutorial for maps and he said all proffesional game developers make a .txt file for the map and write numbers for example:

111111111111111111111
111111111111111111111
111111111111111111111
111111111111111111111
222222222222222222

To create a map.. Is this correct or how did the developers do maps in the Super mario bros or Mega man games ??
Advertisement
hello guys!

I've been trying to figure out now if i have a map in my platformer game and i want my character be able to jump on some platform for example.. Is there any easy way to tell the game where the platforms are and where the player can jump and start??

Also the games like Super Mario Bros and such are their maps made in .txt files ? Because i watched a tutorial for maps and he said all proffesional game developers make a .txt file for the map and write numbers for example:

111111111111111111111
111111111111111111111
111111111111111111111
111111111111111111111
222222222222222222

To create a map.. Is this correct or how did the developers do maps in the Super mario bros or Mega man games ??
Metanet wrote up two pretty solid tutorials on it; check em out.

http://www.metanetsoftware.com/technique/tutorialA.html
Well from what I've seen, all there is too it is that, you use the text file to draw the map and that's it, as far as collisions, is to test 1 tile ahead of the person in the direction their going in. Don't use pixel movement, and what I mean by that is when you move don't do player.x--; or player.y++; use a way to move 1 tile a time, collisions will be very easy from there
This topic was initially a double post, but apparently a post was made to the topic I first closed so I have now merged them instead, if some posts appear to be out of order.
Thanks for the help i will check it all out !



This topic was initially a double post, but apparently a post was made to the topic I first closed so I have now merged them instead, if some posts appear to be out of order.


I don't know how i posted twice.. Am sorry! this happends some times for me :S

This topic is closed to new replies.

Advertisement