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.

Dark GDK / how to jump in 2d games helpppppppppppppppp

Author
Message
hwoarang
12
Years of Service
User Offline
Joined: 19th May 2012
Location:
Posted: 19th May 2012 09:01
hi, iam new in game programming and i need your help. i dont know how to jump in 2d game. any thing will be help full.

remember iam new in programming so i dont understant function, classes..etc. and i know its import but i will learn it later. i wan tto kepp my code really simple for know. i was thinking using dbUpKey().


Blackout1471
12
Years of Service
User Offline
Joined: 21st Dec 2011
Location: Visual C++ Express
Posted: 19th May 2012 13:40
http://forum.thegamecreators.com/?m=forum_view&t=192593&b=22 try it.

For the NOOOBS!
DeadTomGC
14
Years of Service
User Offline
Joined: 11th Aug 2010
Location: LU
Posted: 21st May 2012 20:30
I recommend making a velocity variable and then constantly adding a small number like .5 or less to it. Every time you hit the ground, you set it to 0. Every refresh, you move the sprite down by velocity.


Login to post a reply

Server time is: 2024-11-19 01:34:20
Your offset time is: 2024-11-19 01:34:20