Jump to content
  • Advertisement
Sign in to follow this  
TheCompBoy

Platformer Platforms / collission?

This topic is 2593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ??

Share this post


Link to post
Share on other sites
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 ??

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!