Skip to reading
First Light, Part 2: Three Knocks

Give each model a walk

Edition 0.86.3.4

Part 2 of the First Light course. Import Kit and Pip’s models, assign idle and walk clips, add a one-time clock response, check player saves and run a compiled desktop build.

Download PDFView illustrations

03 / MOVEMENT

A model can contain several little recordings of movement, called clips. PCA chooses a state such as idle or walk. You tell it which clip to show for that state.

1. Set Kit’s standing pose. Select Characters › Kit › Animation States. Click the existing idle row. Set Animation Source to Model Clip and Animation / Sprite Asset to Current Character Model. For Known Clip, select the long name below. You can also paste it into Clip Name. It is the quiet breathing clip in these two models.

01a142a6-a57c-7551-96a5-f1229d38cb51

2. Tell PCA how to walk. For idle, check Loop, set Playback Speed to 1 and click Validate and Apply State below the fields. Now click Add State. Enter walk for State ID and Walk for Display Name. Choose Model Clip and Current Character Model again. Set Known Clip to Walking. Keep Loop checked and speed at 1. Apply the state.

[1] The animation comes from the model. [2] Walking is the clip for this state. [3] Loop repeats its steps while the character moves.

3. Repeat for Pip, then play. Open Characters › Pip › Animation States and make the same idle and walk settings. Save, play, and click bare floor a few steps from Kit. Watch Kit walk and settle. Press Tab and try Pip. If either slides, check that the state ID is walk and its clip is Walking.

Page 4 of 9Permalink
Go to page

Continue your 3D adventure

  1. Part 1First Light, Part 1: Your First 3D Adventure
  2. Part 2First Light, Part 2: Three Knocks
  3. Part 3First Light, Part 3: Behind the Wall
  4. Part 4First Light, Part 4: The Message in the Machine
  5. Part 5First Light, Part 5: The Clockmaker’s Secret
  6. Part 6First Light, Part 6: The Final Hour