Fly in

An arrival from above: the character swoops down from the upper right, rocking and fluttering, and settles onto its spot.

A cartoon person and a dog floating above the grass, tilted mid-flight, on their way down to land.

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

What it is for

Fly in is the entrance for anything that comes from the sky: the bird, of course, but also a superhero, a falling leaf with a face, a character jumping down from a wall. It takes the whole time the move is given, so in a 3-second slot the landing comes at the very end. The rocking calms down as it nears the ground, so the landing looks controlled. There are no wing flaps in this move; the bird's wings stay folded and the flutter is in the body.

The principle it shows: slow in and slow out

The glide down uses a smooth ease, so the character speeds up out of the sky and slows down before it touches the ground: the "slow out" of a landing. The rocking is tied to the same clock and shrinks as the flight goes on, from 7 degrees to about 3, which reinforces the slowing down.

The program, line by line

settings: from_dx = 760, from_dy = -460, t_in = (dur)
when it starts
  set dx (from_dx), dy (from_dy)
  sin wave on rot · w 22 · amp (7*(1 - 0.6*smoothstep(min(tau/max(t_in, 0.1), 1)))) · on the behaviour clock
  sin wave on sy · w 22 · amp 0.05
  sin wave on sx · w 22 · amp -0.03
  glide dx 0, dy 0 over (max(t_in, 0.1)) s (smooth)

Try this

  1. Start 760 pixels to the left instead of the right. The character now swoops in from the upper left, which suits a scene where the action comes from that side.

    In the program: params.from_dx 760 → -760

  2. Make the flutter on the height 15% instead of 5%. The body pulses much more strongly as it flies, like a small bird beating hard to stay up.

    In the program: wave · amp 0.05 → 0.15

How it differs from Fly out and Slide in

Fly out is the reverse: it rocks harder and speeds up as it leaves, to the upper left. Slide in arrives from the side at ground level, with one squish and no rocking.

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

c4c:beh:fly_in · version 1.0.0 · CC0 (public domain) · by Jabbertoon