Sign in to follow this  
TheCompBoy

Platformer Platforms / collission?

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
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
Thanks for the help i will check it all out !


[quote name='Brother Bob' timestamp='1313417624' post='4849387']
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.
[/quote]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this