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 / Simple Jump Code Explained

Author
Message
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 9th Feb 2011 17:25
Hi, ive seen that some people have trouble with jumping. i had nothing to do so i thought id help those with this problem. here is the code:



hi
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 9th Feb 2011 19:02
Hi Cetobasilius... (had to copy and paste your name. easier.)

Had a read through your code there. Nicely explained. I think TGC should have user related tutorials in categories in a forum.

Here's just a little snippet out of my game that handles the jumping:



I've just added this in the last 2 hours to the game I'm working on. Not a commercially professional thing. Just a hobby program. Each time I do a few updates I'll put it on the codebase.

I'm just using the basic old school parabola curve.

Warning! May contain Nuts!
DaNuTz
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location:
Posted: 10th Feb 2011 16:41
Hi Cetobasilius ... i started with darkGdk 2 weeks ago and i'm struggling with "Donkey Kong" . Thanks for your post it really helps me to understand how mario should jump.. ....great.... thx again.

danutz
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 10th Feb 2011 22:34
Hey no problem! im glad it was of help.

hi

Login to post a reply

Server time is: 2024-11-19 14:48:38
Your offset time is: 2024-11-19 14:48:38