In the previous part, our bird learned how to jump.
Follow step by step to learn (recommended) or download the project. You can find all assets and the final project in the AEJuice Pack Manager – Newsletter – Rig Bird Game
. Here are direct links for the latest plugin version:
Windows / macOS
Let’s teach it how to run today.
The run is a cyclical series of sprites, so for convenience, we’ll combine them into one layer.
Create a composition Run with a duration of three frames and arrange the running sprites one after another (import Run from AEJuice Pack Manager – Newsletter – Rig Bird Game).
Pro tip: Instead of three frames, you could create a composition of 6 frames and stretch each sprite for two frames, so the character will be moving his legs more slowly.
We add the Run composition into our main composition, attach it to the control, and copy the position from another layer with Character.
Loop the running animation. In Time Remap (Ctrl+Alt+T), we write
Since it’s a composition, we fix the cycle by creating a key before the last key and then copying the first key to the last one’s position.
Pro tip: you could use our Pack Manager – press the lightning icon – Loop. It takes care of the last keyframe issue automatically.
The Run layer should be visible under the following conditions:
– Character is in motion
– Character is not jumping