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.

Newcomers DBPro Corner / please help me! I don't know how to make my char jump.

Author
Message
rodrigoFM
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location:
Posted: 24th Oct 2002 06:52
i'm trying to make a 2d fight game but i don't know what can I do to make a char jump like in the fighting games.
could anybody help me... or else tell me where can i find a 2d game tutorial...thanx!
Shadow
21
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 27th Oct 2002 19:45
I made a (very bad) fighting game yesterday. I used code like this:

if y < 360 then gspeed = gspeed + 1

y =y + gspeed

if spacekey()=1 and y => 360 then gspeed=-15
if spacekey()=0 and y => 360 then gspeed= 0
Shadow
21
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 27th Oct 2002 19:45
(put this inside your main loop)
rodrigoFM
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location:
Posted: 29th Oct 2002 03:40
thanx for the code....
I would really like to have your game. Just send it to my E-Mail please....==> rodrigofmd@hotmail.com

Shadow
21
Years of Service
User Offline
Joined: 17th Oct 2002
Location: In the shadows
Posted: 30th Oct 2002 17:05
Here's the code:



The sounds are from darkbasic media, so you can get them easily (or use other ones)

The graphics I drew in paint in about 2 minutes, so you're better off not using them.

Login to post a reply

Server time is: 2024-03-01 04:30:20
Your offset time is: 2024-03-01 04:30:20