This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-07-29 15:10:43

Fireicedude
Scratcher
Registered: 2007-10-24
Posts: 43

Double Jumping?

Is there any way to make an effective double jump for a sprite in a game? I haven't found any simple tutorials.

Offline

 

#2 2008-07-29 15:12:49

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Double Jumping?

Make a variable, set it to zero whenever the sprite is touching the ground, then when you jump, set it to one, then set it to two when you double jump, and don't let it jump if that variable is two.

Offline

 

#3 2008-07-29 15:14:07

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Double Jumping?

so
if <variable > 1>

else
(jumping script)

Offline

 

Board footer