Climb (four legs)

The climb of the game cycles for four legs: the front legs reach up in turn while the back legs push, the body tipped up, looping every 0.8 seconds for as long as a game has the character climbing.

A cartoon person and a dog with front legs reaching up a wall, body tipped up, mid-climb.

Use it in a cartoonOpen it in the block editorThe pack file (JSON)

What it is for

Climb (four legs) is the climb of the nine game cycles, written for the fours set: reaching up with the front legs in turn and pushing with the back legs, the body tipped up, rather than reaching hand over hand the way the upright Climb does. Like the other climbs in this set, it keeps no foot-planting math at all, since there is no floor to plant against.

The principle it shows: secondary action

The front legs reaching up, in turn, are the main action. The back legs pushing, at the same speed but a half-turn out of phase, and the tail swinging at that same rhythm, are secondary actions layered on top rather than moving in lockstep with the front legs.

The program, line by line

settings: h = 540, leg = 0.33
when it starts
  show the side view
  set torso 12, back left leg 10, back left shin -10, back left foot 0, back right leg 10, back right shin -10, back right foot 0, front left leg 50, front left shin 30, front left foot 0, front right leg 50, front right shin 30, front right foot 0, head 6
  sin wave on front left leg · every 0.8 s · amp 26
  sin wave on front right leg · every 0.8 s · amp 26 · phase 3.141592653589793
  sin wave on front left shin · every 0.8 s · amp 20 · phase 1.5707963267948966
  sin wave on front right shin · every 0.8 s · amp 20 · phase 4.71238898038469
  sin wave on back left leg · every 0.8 s · amp 10 · phase 3.141592653589793
  sin wave on back right leg · every 0.8 s · amp 10
  sin wave on tail · every 0.8 s · amp 8

Try this

  1. Reach the front left leg 40 degrees instead of 26. The climb stretches noticeably further with each reach.

    In the program: wave · amp 26 → 40

  2. Tip the body 20 degrees instead of 12. The climb reads as a much steeper wall, the character almost vertical against it.

    In the program: set · to.part:torso 12 → 20

How it differs from Climb and Swim (four legs)

Climb is the same idea pulling hand over hand on a two-legged body rather than reaching with front legs. Swim (four legs) is the other cycle written for this body with no foot-planting math, paddling through water rather than climbing.

Works on

Worked out by the build: it plays the move in the engine on each body and checks what moves on screen. Nobody types this table.
BodyMoves?What moves
2 legs (a person)yesturns, body, head, arms
4 legs (a dog)yesbody, head, front legs, back legs, tail, ears
no legs (the monster with no legs)yesturns, body, arms, tail, ears

c4c:beh:cycle_climb_fours · version 1.0.0 · c4c-free · by Jabbertoon