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! / Any tutorials on making a 2D-Side Scrolling Shooter Out There? Any Tile Map Tutorials that are complete?

Author
Message
db programmer 12
20
Years of Service
User Offline
Joined: 7th Sep 2005
Location:
Posted: 8th Oct 2005 22:56 Edited at: 8th Oct 2005 22:58
I'm working on a game

Anyways, is there any tutorials on the topic mentioned above in my
thread's title. Because if there arn't I won't be making my dream
game for awhile.

I truly hope there are.


Please post as soon as possible okay ppl.

Thanks!

DarkBASIC Classic All The Way
2D Rocks!
db programmer 12
20
Years of Service
User Offline
Joined: 7th Sep 2005
Location:
Posted: 9th Oct 2005 00:50
Also can anyone help me with Jumping in 2D! It's so dang hard!

DarkBASIC Classic All The Way
2D Rocks!
Dave1974
21
Years of Service
User Offline
Joined: 1st Aug 2004
Location:
Posted: 16th Oct 2005 21:37
The first step would be to setup variables to control the vertical velocity, outside of the game loop.


The next step is checking that the player is standing on something.
If the player isn't on something, increase the YSpeed by Gravity up to the FallLimit.


If the jump key has been pressed, and the player is on the ground, set YSpeed to JumpSpeed and change the OnGround flag to false


And finaly, update the player location.


You will need to tweek the values for Gravity, JumpSpeed and FallLimit to suit your game.

Hope this helps.
Dave
Dave1974
21
Years of Service
User Offline
Joined: 1st Aug 2004
Location:
Posted: 16th Oct 2005 22:30
Oops There were a few bugs in there.

Change all of the following:

END IF lines to ENDIF.
Gravity to Gravity#
YSpeed to YSPEED#


Better still, have a look at my demo.

Login to post a reply

Server time is: 2026-07-06 15:43:41
Your offset time is: 2026-07-06 15:43:41