Try it

Showcase

How a scene follows the slider, and five curves from a production ride. The home page shows the other three.

Scrub it, and the scene follows

Most of the Launch Night scene on the home page is a plain function of position and time. The parcel's clock is the road: an interpolate turns the position into the seconds that the bounce has run. Drag the slider back, and the parcel un-bounces. The shadow reads the parcel's output, and the comet reads the position and the clock. The scene stores no velocity and integrates no step, so a frame costs the same wherever you drag. A test checks it: after thousands of frames of history, these objects equal a fresh instance at the same inputs.

The fireworks are the one exception. Each one is a WHEN block on position that reads delta time. That clock counts from the frame where you land in the block. It does not count from the road position where the block begins. Drag from before the block to the middle of it, and the clock starts at 0 where you land. Drag out and back in, and it starts at 0 again. scene.reset() clears every such clock.

Five more curves from production

These curves come from the scenes of a production scroll-driven ride. Each plot is sampled from the compiled module at build time, frame by frame. It is not redrawn from the formulas. Under each plot: the lines of the excerpt, which are the ride's own text, and the line they came from. The excerpts keep the ride's own scene dialect. The moveby build command refuses that dialect, so these excerpts do not build as they stand. They run without a renderer, and the plots show their numbers.

A logarithmic spiral, seen from above

The logo spirals out from its spot, dashes across, spirals in around the road, and then orbits just ahead of the rider. The plot shows the path across the road and along it. Gravity pulls it down at the same time, in a third property that the plot does not show.

rust_lang.moveby, lines 18 to 24
    s =
        anchor + (if position - anchor < 12.2962896827 then
                if position < anchor then 25
                else motion_circling_s(20, spiral_radius(5, 0.1896, s_to_t(5.79449, 0, 12.2962896827, position - anchor)), pi / 2, -s_to_t(5.79449, 0, 12.2962896827, position - anchor))
            else if position - anchor < 26.4238122782 then motion_linear(33.2444967683, 4.3657789147, s_to_t(6.6574381799, 0 + 12.2962896827, 14.1275225955, position - anchor))
            else if position - anchor < 58.6461098501 then motion_circling_s(69.2376, spiral_radius(8, -0.1369, s_to_t(15.1844, 0 + 26.4238122782, 32.2222975719, position - anchor)), -pi / 3, s_to_t(15.1844, 0 + 26.4238122782, 32.2222975719, position - anchor))
            else motion_circling_s(position - anchor + 10.5914901499, 1, pi / 2, (position - anchor - 58.6461098501) / 2.1220659079)),

Source in the production ride: 10.languages-selection.moveby:121
Without it: polar-to-Cartesian code in the update loop, and a state machine for the phases.

A double jump, chained at the apex

The first projectile rises to its apex. The second starts at that point with a fresh kick and rises further. These are two pure pieces joined by one if.

light.moveby, lines 22 to 25
    elevationM =
        let t = interpolate position: light_declared - 5 .. light_declared - 5 + 20 -> 0 .. 4.08163265306 in
        if t < 2.04081632653 then motion_projectile(-4, 20, t)
        else motion_projectile(16.4082, 20, t - 2.04081632653),

Source in the production ride: 2.academy-objectives.moveby:107
Without it: a jump counter, a grounded flag, and a velocity reset in an event handler.

Ask for the peak, get the launch speed

calc_projectile_v_to_peak_at turns a wanted peak into the launch speed. The parcel lobs across the road and tops out at the start height plus the height that the call asked for.

parcel_1.moveby, lines 24 to 26
    elevationM =
        let t = interpolate position: parcel_1_declared - 12 .. parcel_1_declared - 12 + 20 -> 0 .. 4.5758113491 in
        motion_projectile(12, calc_projectile_v_to_peak_at(20), t),

Source in the production ride: 19.impact.moveby:59
Without it: tuning an initial velocity by trial until the arc looks right.

Twelve turns on a spring

A clock hand spins many full turns on a spring. The noWobble spring settles it exactly on the end angle, so it stops on a whole turn. The road drives the spin: ride slower, and the clock runs slower.

minutes_hand.moveby, lines 26 to 27
    rollDeg =
        interpolate position: minutes_hand_declared - 30 .. minutes_hand_declared - 30 + 80 * 2.897 -> 0 .. -4320 [noWobble],

Source in the production ride: 10.languages-selection.moveby:221
Without it: a rotation tween, plus code that stops it on a whole turn.

Armed by the road, paced by the clock

Two groups start to cross when the rider is close. After that the crossing runs in seconds, not in metres: delta time is zero on the frame where the condition becomes true. This is the one form that depends on the frames before it.

crossing.moveby, lines 40 to 43
// men_crossing_the_road — AT men_crossing_the_road - 15m: armed when the camera reaches the trigger, then paced by the wall clock.
WHEN position >= men_crossing_the_road.s - 15 {
    men_crossing_the_road.lateral = interpolate delta time: 0 .. 3 * 2.897 -> -8 .. 10 [noWobble]
}

Source in the production ride: 3.beat-iii.moveby:115
Without it: an IntersectionObserver, a start-time variable, and cleanup when the reader scrolls back.

Start with the Quick Start, or try a track in the playground.