Natural jumping

Non-platform specific questions.

Natural jumping

Postby Troodon » Tue Feb 21, 2006 4:03 pm

I know that I can jump using y = -30; or yvelocity = -30; and I know that I can make jumps more believable with variables, but how can I make natural jumping. I mean that now when I jump the actor first fly little up and then the draw actor-event throws it back to terrain. I have tried to do cool jumps with timers and multiple variables but...
How can I make soft and smooth jumps like in many platform games for example sonic, supermario etc?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby makslane » Tue Feb 21, 2006 6:25 pm

Add gravity in the Draw Actor event:

yvelocity += .8;
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Troodon » Wed Feb 22, 2006 10:55 am

You mean like this?
Code: Select all
yvelocity = rand(40)+2;
yvelocity += .8;

It makes the actor jumps more naturally. Thank you!
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron