Hug

Both arms open wide and wrap round, a flag marking the instant of touch, before the whole body softens into a held, gentle squeeze.

A cartoon person and a dog, both with arms wrapped around each other mid-hug.

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

What it is for

Hug is for affection between two characters: both arms open wide, wrap around, and squeeze gently, holding for a moment before letting go. It pairs well with another character's own Hug, both flagged to the same touch.

The principle it shows: squash and stretch

Once the arms have wrapped around — the flag fires right as they finish closing in — the whole body squashes gently to 97% of its height, a small, soft squeeze rather than a sudden stop, before holding and then stretching back to full height as the arms open again.

The program, line by line

when it starts
  glide right arm 100, right forearm 30, left arm 100, left forearm 30 over 0.3 s (out)
  glide right arm 86, right forearm 82, left arm 86, left forearm 82, rot -6, dx 8 over 0.25 s (in)
  set flag_touch to (tau)
  glide sy 0.97 over 0.2 s
  wait 0.4 s
  glide right arm 0, right forearm 0, left arm 0, left forearm 0, rot 0, dx 0, sy 1 over 0.35 s

Try this

  1. Squash to 90% of full height on the squeeze instead of 97%. The hug becomes a much bigger, tighter squeeze.

    In the program: ramp · to.sy 0.97 → 0.9

  2. Hold the hug for 1.2 seconds instead of 0.4, three times as long. The embrace lingers much longer before the arms let go.

    In the program: wait · s 0.4 → 1.2

How it differs from High five and Shake hands

High five shares the flag_touch idea but uses one arm and is over in under a second, with no squash; Hug uses both arms and holds the squeeze for longer. Shake hands is the other two-character greeting here, with no embrace or squash at all.

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)yeswhole body, arms
4 legs (a dog)yeswhole body, front legs
no legs (the monster with no legs)yeswhole body, arms

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