Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
Game mechanicsNovember 22, 20266 min read

Moving and One-Way Platforms

Two platform types cause more platformer bugs than any enemy. Here is the update order, the collision rules and the edge cases that make them solid.

Startbase Team
Editorial ink illustration of a wooden plank hanging from ropes over a gap with a toy figure on it, the pulley wheel in ember orange

Key takeaways

  • A moving platform carries its riders by adding its own movement this frame to each rider, before the rider moves itself. Update order is the whole trick.
  • A one-way platform only collides when the player is falling and their feet were above its top on the previous frame. Drop-through ignores it for about 0.2 seconds.
  • Ease moving platforms at their ends, pause 0.5 to 1 second there, and decide what happens when one crushes the player.

A moving platform is solid ground that travels along a path and carries whatever stands on it. A one-way platform is ground the player can jump up through from below and land on from above, and usually drop down through on command. Both look trivial and both produce some of the most common bugs in 2D games: players sliding off platforms they are standing on, jittering as a platform descends, popping up through floors, or falling through a ledge they landed on. The fixes are a specific update order and a specific collision test.

Moving platforms: the path

Most moving platforms follow one of three paths: back and forth between two points, a loop through waypoints, or a circle around a center. A few values decide how they feel:

  • Speed: 60 to 150 px/s at 720p (roughly 1 to 3 tiles per second with 48 pixel tiles). Slower than the player's run, so catching one is a timing problem, not a race.
  • Ease at the ends. Use a sine curve over the path, or ease in and out over the last 10 to 20 percent. Instant reversals jerk the rider and look mechanical.
  • Pause at the ends: 0.5 to 1 second. Gives the player a stable moment to board or jump off.
  • Phase offsets. A row of platforms with offsets (0, 0.33, 0.66 of the cycle) makes a moving staircase. Without offsets they move in lockstep, which is rarely what you want.
  • A visible track. A rail, a chain or a dotted line showing the whole path. Players should be able to plan before the platform arrives.

Carrying the player: update order

The bug everyone hits first: the player stands on a platform moving right, and the platform slides out from under them. The platform moved, but the player did not. Fix it with a strict order every frame:

  1. 01Move platforms first. Record each platform's movement this frame: `delta = newPosition - oldPosition`.
  2. 02Find riders. A character is riding if it was grounded on that platform last frame (its feet within 1 to 2 pixels of the platform top and overlapping horizontally).
  3. 03Move riders by the delta. Add the platform's delta to each rider's position, using normal collision so a rider carried into a wall is stopped by it.
  4. 04Then move characters by their own input and gravity. Their collision with the platform now happens against its new position.

Moving the rider by the delta, not by setting its velocity to the platform's velocity, is what keeps it glued. It also works for anything else that rides: crates, enemies, coins. A 3D physics engine solves this differently (kinematic bodies and friction), but the same order matters in custom character controllers; our 3D platformer guide covers the 3D side.

Jumping off a moving platform

When the player jumps, should they keep the platform's speed? Physically yes, and it lets players use platforms to jump further. But it surprises players when a fast platform flings them. A common compromise: keep the horizontal part of the platform's velocity for the jump, and a reduced or zero vertical part, so a rising platform does not launch the player into the ceiling. Decide once, because every gap near a moving platform depends on it.

One-way platforms: the collision rule

A one-way platform (sometimes called a jump-through or cloud platform) is solid only from above. The test that works in practice has two parts, and both must be true for the platform to stop the player:

  • The player is falling or still: vertical velocity points down (or is zero, when standing).
  • The player's feet were at or above the platform top on the previous frame, with a tolerance of a few pixels.

Checking only velocity is the common mistake: a player at the top of a jump, half inside the platform, starts falling and snaps up onto it. Checking the previous position means the player only lands on a one-way platform they were above, which is what players expect. One-way platforms only block downward movement, never sideways.

Dropping down through

  • Input: down plus jump is the convention on controllers and keyboards; holding down for about 0.15 to 0.25 seconds also works and suits phones better.
  • Ignore that platform (only that one) for 0.2 to 0.3 seconds, or until the player's top is below it. Ignoring all one-way platforms lets the player fall through several stacked ones.
  • Never drop through solid ground. Only platforms flagged one-way can be dropped through. Stacking a one-way platform directly on solid tiles makes drop-through look broken.

Edge cases and the bugs they cause

  • Jitter on descending platforms. The platform drops faster than gravity moves the player in one frame, so the player is airborne for a frame, then lands, every frame. The rider step above fixes it; also snap grounded riders to the platform top.
  • Fast platforms leave the player behind. If a platform moves more than a few pixels per frame upward, the rider check can miss. Track riders explicitly instead of re-detecting them only by overlap.
  • Crushing. A platform pushes the player into a ceiling or wall. Options: kill the player (with a clear crush animation and only where the level telegraphs it), stop the platform, or push the player out sideways. Never let the player get embedded in geometry.
  • One-way platform moving up through the player. A rising one-way platform passing a standing player should pick them up only if their feet were above its top. Otherwise it passes through them.
  • Coyote time off moving platforms. The player walks off a moving platform; coyote time should still apply, with the last ground velocity remembered.
  • Enemies on platforms. Patrolling enemies need the same rider logic and must not walk off the edge. Give them an edge check.
  • Respawn phase. After a death, reset platforms to a known phase so retries are consistent. Our checkpoints guide covers what to reset.

Using them in levels

Moving platforms are a timing test; one-way platforms are a routing tool. One-way platforms are great for vertical rooms where the player climbs up through layers and can drop back down, and for floating ledges in arenas that enemies can stand on too. Moving platforms follow the introduce, test, twist pattern from our platformer guide: first over solid ground, then over a pit, then two out of phase, or one that falls after you land. Our level design basics cover more of that rhythm.

On Startbase, things in a level can be given Motion in the World Editor: pick an object and make it spin, bob, swing or sweep, with its speed, how far it goes, its axis and an offset so a row does not move in step. That covers how a platform travels and is tuned by hand. Whether the player rides it correctly depends on the game's movement code, so include the rider rule in your brief.

A brief to paste

Add moving and one-way platforms to my 2D platformer. Moving platforms travel between two points at 90 px/s with sine easing, pause 0.7 s at each end, have a phase offset setting and show a dotted track. Each frame, move platforms first, then move every rider (anything grounded on it last frame) by the platform's movement, then apply player input and gravity. Jumping off keeps the platform's horizontal speed but not its vertical. If a platform would crush the player against a wall, it stops. One-way wooden ledges only collide when the player is falling and their feet were above the ledge last frame; holding down for 0.2 s drops through that ledge only, ignoring it for 0.25 s. Enemies ride platforms the same way and never walk off edges. After a respawn, platforms reset to their starting phase. Expose speed, pause and drop-through time as dials.

Frequently asked questions

Why does my player slide off moving platforms?

The platform moves but the player is not moved with it. Move platforms first each frame, then add each platform's movement to the characters standing on it, before applying the player's own movement.

How do one-way platforms work?

They only collide when the character is moving down and was above the platform top on the previous frame. Otherwise the character passes through, which lets it jump up through the platform from below.

How do I let the player drop through a platform?

On down plus jump, or a short hold of down, ignore collision with that one platform for about 0.2 to 0.3 seconds, or until the player is fully below it. Never allow it on solid ground.

On this page

  • Moving platforms: the path
  • Carrying the player: update order
  • One-way platforms: the collision rule
  • Edge cases and the bugs they cause
  • Using them in levels
  • A brief to paste

Keep reading

More in Game mechanics
Editorial ink illustration of a wooden toy figure in mid-air above a gap, the puff cloud under its feet in ember orange
Game mechanicsNovember 22, 2026

How to Add a Double Jump to Your Game

A double jump is one counter and one reset rule, but the details decide whether it feels like control or like cheating. Here are the values and the bugs to watch for.

8 min read
Editorial ink illustration of a small figure streaking along a stone floor with faded ghost copies behind it, the front figure's scarf in ember orange
Game mechanicsNovember 22, 2026

How to Add a Dash Move

A dash is a short burst of fixed speed that overrides normal movement. Get its distance, its ending and its refill rule right and it becomes the move players use most.

7 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.