When character jumps
Fires the moment a character leaves the ground with a jump.
Introduction
When Character Jumps is an event in the Character group of World Events. It fires the moment a character leaves the ground with a jump. Like every event, it does nothing by itself. It waits for the right moment, then runs all the actions connected to it. Use it when something should react to the hop itself, like a dust puff, a boing sound, or a counting combo. This event belongs to the Character component. Open the Character component guide to see everything the component itself can do. A jump is one of the most common player actions, so this event pairs naturally with the rest of the Character family: When Character Falls on Ground fires right after the jump ends, When Character Start Moving and When Character Stop Moving track the run before and after it, and When Character Respawns covers the moment the character comes back. For the asset side (jump strength, gravity, and animations), open the Character guide. When character jumps event in the Uni editor Image The When character jumps event in the Script Editor.
Parameters
None This event has no parameters. The event fires on its own and everything you need is the object running this script. Parameter Description
How to Access
How to Access - Event When character jumps
How to Use
Click the mannequin on the Spawn Point to select the Starter Player , scroll to the bottom of its properties panel, and press Character to expand the Character section. Press Character Events at the bottom to expand its event list; only three events (jump, killed, and respawn) show up at first. To reveal the others, press the ⋯ button at the right of the Character Events property, scroll down in the popup, and tick the checkbox of the event to show — When Jumping . Press the + button below the event to add a script, then press Edit on that script to open the script editor and build the actions that should run when the event fires. Press Play and make the character jump, then check that the actions run.
Example
When character jumps: Set Self Character.Jump Height Add 1 when-character-jumps-example.png Raises the character's jump height by 1 every time it jumps. caption
Common Uses
Play jump sounds and dust effects Count jumps for challenges or combos Trigger mid-air visuals like trails
Tip
A double jump fires this event twice, once for each hop. Count jumps with a variable if only the first hop should react.