Hop across

Little hops that carry the character sideways across the stage, squashing on every landing, until it stops 640 pixels to the right.

A cartoon person and a dog in the air mid-hop, a little taller and narrower than normal, travelling to the right.

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

What it is for

Hop across moves a character from one place to another with some bounce in it: skipping over to a friend, bounding to the window, a bird hopping along a branch. A person drawn facing you hops sideways, which looks like a playful sidestep; a dog or a cat drawn facing right hops forward. It arrives after 80% of the move's time and then keeps hopping on the spot.

The principle it shows: arcs

Two simple motions make a curved path: the body glides sideways at an even speed while a one-way wave lifts it up and down. Put together, the character traces a row of arcs across the stage, just as a bouncing ball does. Animators draw such arcs on purpose, because things in nature move along curves, and a path made of straight lines looks robotic.

The program, line by line

when it starts
  abssin wave on dy · w (2.6*pi) · amp -34
  abssin wave on sx · w (2.6*pi) · amp 0.1 · offset 0.96
  abssin wave on sy · w (2.6*pi) · amp 0.12 · offset 0.94
  sin wave on rot · w 2 · amp 4
  glide dx 640 over (max(dur*0.8, 0.1)) s (linear)

Try this

  1. Hop across to the left instead of the right. The character now travels the other way, which a dog drawn facing right does tail first.

    In the program: ramp · to.dx 640 → -640

  2. Make the hops 80 pixels high instead of 34. The little skip becomes a big bouncy bound, more like a kangaroo than a sparrow.

    In the program: wave · amp -34 → -80

How it differs from Hop and Run in

Hop stays on the spot and uses the hop block, with a crouch before each hop. Run in bounds in from far away with its arms pumping. Hop across makes its hops from simple waves and travels a medium distance, sideways if the character faces you.

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:sidle · version 1.0.0 · CC0 (public domain) · by Jabbertoon