Skip to reading
The Sock Exchange, Part 4: Trouble After Closing

Use Bea’s four walking directions

Edition 0.86.4.2

0.86.4.2 edition with appended native sprite-motion lessons. Earlier chapters, reference counts and screenshots retain their original edition context.

Download PDFView illustrations

TUTORIAL 04 • CHARACTER DESIGNER

The side walk from Part 2 and the front and back walks from Part 3 already do most of the work. Bea just needs permission to use those same drawings outside.

1 Open Characters › Bea › Animation States. Check for idle, walk, walk_front and walk_back. Select each walking state and check its preview. The side sheet faces right. The character’s Flip With Direction setting supplies left. Front and back use their own two-frame sheets looping at 5 FPS.

Character Designer • use the state list to choose a walk. The sheet assigned to it appears in the state editor.

2 In Scripts › sorting_motion, find the first if line in _process. Replace that line with the one below. Keep it indented just as it was, with return beneath it. Choose Validate, then Apply Changes. If you skipped the Part 3 motion script, page 19 has the whole thing.

Code example
    if not is_instance_valid(Runtime) or Runtime.scene_id not in ["sorting_room", "service_yard"]:
Click farther up the pavement. Bea  Click directly below her. You should  Click across the room. She takes the
turns her back.                  see her face.                   longer side stride.

Watch her feet. Head straight across, then straight toward the horizon. On a diagonal the stronger direction wins. If she always faces sideways, check the spelling of the room ID and the two walk state IDs, including their underscores.

PCA 3D Adventure Studio / 13

Page 13 of 20Permalink
Go to page

Continue your 2D adventure

  1. Part 1The Sock Exchange, Part 1: Your First 2D Adventure
  2. Part 2The Sock Exchange, Part 2: The Missing Laundry
  3. Part 3The Sock Exchange, Part 3: The Dryer Conspiracy
  4. Part 4The Sock Exchange, Part 4: Trouble After Closing
  5. Part 5The Sock Exchange, Part 5: The Midnight Pickup
  6. Part 6The Sock Exchange, Part 6: Closing Time