A moving platform on a path

By the end you will have a ledge that glides along a path you drew, loops forever, and carries the hero along with it.

What you need

Follows a path and Is overlapping another object are Advanced. Switch to Advanced mode.

Lift+ Add object โ†’ Library โ†’ Rock. Name it Lift. It must be a sprite, not a tile, because only sprites can follow a path. Draw your own plank in the Sprite editor if you like.
HeroHero from the library, with Platform (walk and jump).
GroundGrass tiles on each side of a gap.
NutHouse
Drawing a path in the level editor with the mouse

Build it

  1. Click Lift. Under Movement set How it moves to Follows a path.
  2. Click โœ๏ธ Draw the path with the mouse. The toast says "Now drag in the level to draw the path, starting anywhere." Drag from one side of the gap to the other.
  3. Tick Loop forever and Go back the same way at the end. The lift now shuttles back and forth.
  4. Want it smoother? Edit Path points. One point per line: across, down, speed.
  5. Events tab โ†’ + New event โ†’ Hero โ†’ Is overlapping another object โ†’ Lift.
  6. In the Hero cell choose Set position: X 0, Y โˆ’32, Measured from Lift. Use the Lift's height for the Y number.
  7. Press โ–ถ Play level. Jump onto the lift and ride it across. Jump again to get off.
WhenHero is overlapping Lift
DoSet position of Hero to (0, โˆ’32) from Lift

How the ride works

Sprites are not solid, so the hero cannot stand on the lift by itself. Instead the rule keeps putting the hero right above the lift, every moment they touch. Gravity pulls the hero down, the rule lifts them up again, and so the hero travels with it. Jumping pushes the hero clear.

Make it yours

  • Untick Go back the same way at the end and draw a loop. The lift goes round and round.
  • A moving hazard instead: Lava on a path, and Collides with Lava โ†’ lose a life.
  • A ferry in a top-down level: gravity Off, a raft on a path, and the same overlapping rule.

Still stuck?

Try the Chocobreak tutorial, open a sample game and read its rules, or look at the questions people ask.