Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Platforms

Brandon N. Adams
Years of Service
User Offline
Joined: 4th May 2019
Posted: 29th Jul 2019 03:49
Ok I'm making another game ( I finished pong ) I've decided to keep at 2D for a while as I'm learning a lot but I am making a side scroller now like mario. however here is the floor im my plan, I can get platforms to work so that they can jump and land

PS: I use Dark GDK not pro, let me know if you want to see the code.
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 30th Jul 2019 01:57
Two things are important for platformers.
1. Only check for platforms when the y velocity is moving in a downward direction or zero (if you want the player to be able to jump through platforms like mario)
2. Only check the bottom of the sprite and the top of the platform for collision

Login to post a reply

Server time is: 2023-12-08 12:26:52
Your offset time is: 2023-12-08 12:26:52