Sprites: gravity and jumping

Under Gravity: landing, falling, standing, jumping.

Simple Advanced Expert show the mode each one first appears in. once marks a red condition: it happens once, at a moment. See how to read these pages.

Conditions ยท 5

The When half of a rule.

NameWhat it doesReads as
Lands on the ground once
simple
True once, the moment a falling object lands on something solid.Ball lands on the ground
Starts falling once
advanced
True once, the moment the object starts to fall, like at the top of a jump or walking off a ledge.Ball starts falling
Bumps its head once
advanced
True once, when the object bumps into something solid while going up.Ball bumps its head
Is falling
simple
True while the object is falling. Handy for "squash an enemy by landing on it".Ball is falling
Is standing on the ground
simple
True while the object is standing on something solid.Ball is standing on the ground

Actions ยท 4

The Do half of a rule.

NameWhat it doesReads as
Jump (push against gravity)
simple
Pushes the object up, against gravity. Gravity then pulls it back down.
Asks for: Jump strength (0 to 100)
Make Ball jump with strength 50
Set falling speed
advanced
Sets exactly how fast it is falling. A minus number sends it up.
Asks for: Speed (pixels per step, minus goes up)
Set falling speed of Ball to 0
Start falling with gravity
simple
Makes the object start falling with the level's gravity.Ball falls with gravity
Stop feeling gravity
advanced
Makes the object float, ignoring gravity.Ball stops feeling gravity

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.