Skip to reading
The Sock Exchange, Part 3: The Dryer Conspiracy

Build a washer that spins

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 03 • SCENE + ASSET DESIGNERS

Only the laundry inside the drum moves. Keeping the metal case in exactly the same place in every drawing makes the machine look bolted to the floor.

1 Make a 48 × 48 transparent picture. Draw a pale square case, a dark round window and two bright bits of laundry. Save as washer_off.png. Copy this frame into a 192 × 48 strip four times. In each box move the two bright patches a quarter turn around the window. Save as washer_spin.png.

Four separate 48-pixel boxes make a full turn. The corners of the outside case line up in all four.

2 In Assets, import washer_off as Image and washer_spin as Sprite Sheet. For the sheet choose Grid (Rows / Columns), 4 columns, 1 row, 4 FPS. Apply Asset Changes. In Asset Preview use Next, then Play. You should see one washer with moving laundry.

Asset Designer • step through the drum before placing it.

Scene Designer • position the washer against the pipe.

3 In Sorting Room, place washer_off just as you placed the sock. Name it Locked washer, ID washer_lock. Use world position [4.7,0,0.72] and source size 270 × 270. Place washer_spin at the same position and size. Name it Spinning washer, ID washer_running. Give the spinning sprite 4 FPS and turn Default Animation Loops on.

4 Start with only the locked version visible and enabled. Turn off the running object’s initial visibility or enabled state so the two hotspots cannot compete. The next page turns it on when the latch is fixed.

PCA 3D Adventure Studio / 11

Page 11 of 18Permalink
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