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
GamesNovember 22, 20267 min read

How to Make a Platformer Game with AI

A platformer lives or dies on its jump. Here are the numbers behind a jump that feels fair, how to build levels around it, and how to get an AI agent to build both.

Startbase Team
Editorial ink illustration of a wooden toy figure jumping between two stone ledges, the coin above the gap in ember orange

Key takeaways

  • Tune the jump before you draw a single level: apex height, time to apex, a heavier fall, coyote time and a jump buffer.
  • Build levels from the jump arc. Required gaps and ledges sit comfortably inside what the jump can do, never at its exact limit.
  • Describe the feel in numbers and the agent can expose them as live dials, so you tune by playing instead of by guessing.

To make a platformer game, get one thing right first: the jump. Pick how high and how fast it goes, make falling heavier than rising, forgive late and early presses with coyote time and a jump buffer, then design every level around that arc. With an AI builder like Startbase you describe those rules in plain language, play the result in a live preview, and lay out levels by hand in the World Editor. The rest of this guide gives you the actual numbers.

Start with the jump, in numbers

Most first platformers feel floaty because someone picked a gravity value and a jump force at random. Work backwards instead. Decide two things: how high the jump peaks (in tiles) and how long it takes to get there. Everything else follows from basic physics: gravity is `2 × height ÷ time²`, and launch speed is `2 × height ÷ time`.

A worked example with 48-pixel tiles: you want a jump that clears 3 tiles (144 px) and peaks in 0.35 seconds. Gravity comes out at about 2,350 px/s² and launch speed at about 820 px/s. Those are your starting values, not your final ones. Classic platformers peak somewhere between 0.3 and 0.45 seconds; below that the jump feels twitchy, above it the character starts to feel like it is on the moon.

The five settings that make a jump feel fair

  • Fall gravity multiplier. Multiply gravity by 1.5 to 2 once the character is moving down. Rising slowly and falling fast is what reads as “weighty” instead of floaty.
  • Variable jump height. When the player releases the button while still rising, cut upward speed (halving it is a good start). A tap gives a hop, a hold gives the full jump.
  • Coyote time. Let the player jump for a short window after walking off a ledge, typically 0.08 to 0.12 seconds (5 to 7 frames at 60 fps). Players never notice it; they only notice when it is missing.
  • Jump buffer. If jump is pressed just before landing, remember it for about 0.1 to 0.15 seconds and fire the jump on touchdown. This kills the “I pressed it!” complaint.
  • Terminal fall speed. Clamp how fast the character can fall, so long drops stay readable and the collision code never skips through a thin platform.

Tip

Horizontal movement matters as much as the jump. Give the run a short acceleration (reaching top speed in roughly 0.1 to 0.2 seconds) and a faster deceleration, and keep some, but not full, control in the air. Instant stop on release feels precise; long slides feel like ice. The game camera guide covers the other half of feel: how the view follows those jumps.

A brief that gets the feel right the first time

An agent cannot read your mind about feel, but it can implement numbers exactly. Name the mechanics, the values and what you want to tune. Ask for those values as dials, because on Startbase every dial the agent adds shows up in the game’s engine panel where you can drag it while the game runs (see the games template docs).

A 2D side-scrolling platformer for phone and desktop. A small fox runs and jumps across floating stone ledges to reach a lantern at the end of each level. Jump peaks at 3 tiles in about 0.35 seconds, falls with double gravity, and releasing jump early cuts the height. Add coyote time (0.1 s) and a jump buffer (0.12 s). Run reaches top speed in 0.15 s and stops fast. Expose jump height, time to apex, fall multiplier, coyote time, buffer and run speed as dials. Touch controls: left and right buttons on the left thumb, a big jump button on the right. Three short levels, a checkpoint flag halfway through each, coins to collect, and a level complete screen with the coin count.

Notice what the brief leaves out: no art direction essay, no story, no menus beyond the minimum. Get the run and jump right, then add those. The agent playtests each build in a real browser before handing it back, but only you can tell whether the jump feels good, so play it on a phone as soon as it exists.

Build levels from the jump arc

Once the jump is locked, measure it. How many tiles high can the character reach with a full jump? How many tiles across can it clear at full run speed? Write those two numbers down, because every level obeys them. A sensible rule for required jumps is to stay at about 80 percent of the maximum: if the jump clears 5 tiles across, make critical gaps 4 wide. Maximum-distance jumps are fine for optional coins and secrets, where failure costs a coin, not a life.

If you change the jump later, every level silently breaks. That is the strongest reason to tune the jump first and resist touching it once you start laying out real levels.

Level beats: introduce, test, twist

Good platformer levels are built from short beats, each about one idea. A common pattern (and roughly the one Nintendo’s level designers describe) is to introduce an element safely, test it with some risk, twist it with a new condition, then end the level before the idea gets stale. Level design basics goes deeper on that pattern of short beats.

  1. 01Introduce: a moving platform over solid ground. Falling costs nothing.
  2. 02Test: the same platform over a pit. Now timing matters.
  3. 03Twist: two moving platforms out of sync, or a platform that drops after you land.
  4. 04Conclude: a short run to the goal that uses the idea once more with confidence.

A first platformer needs fewer mechanics than you think. Three or four elements (moving platforms, crumbling ledges, springs, a simple enemy that patrols) give you a dozen distinct levels when you combine them. Add a new element every two or three levels, and mix it with the old ones.

Lay out levels by hand in the World Editor

Describing a level layout in words is slow. On Startbase, the agent builds the first levels and then you switch Play to Edit above the game to open the World Editor. In a 2D game you can drag ledges, coins and hazards, duplicate a platform with ⌘D (press again after moving it and the next copy lands the same distance further), and turn snapping on with a step from 1 to 64 pixels so platforms line up with your tile grid.

  • Play from here: press P and the level starts with the player where the camera is, so you can retry one tricky jump without walking there each time.
  • New level and Duplicate level: levels play in file order (level-1, level-2, and so on), so a duplicated level is an easy way to build a harder variant of one you like.
  • Shapes: new 2D games come with a rectangle, circle and triangle you can size and color, which is enough to block out a level before any art exists.
  • No credits: editing and saving levels by hand does not use credits. Ask the agent only when you need new behavior, like a platform that falls.

Camera, checkpoints and death

Three small systems decide whether players finish your levels. The camera should lead the player slightly in the direction of travel (lookahead) and not chase every small hop vertically; a vertical dead zone that only moves the camera when the player lands on a new height keeps the screen calm. Checkpoints belong right before a hard section, not after one, and a level that takes longer than about 60 to 90 seconds needs at least one. Death should be fast: a short hit flash, respawn at the checkpoint in under a second, no menu in between. Players will retry a hard jump twenty times if retrying is instant.

Common platformer pitfalls

  • Snagging on tile seams. A row of separate square colliders can catch the player’s feet on their edges. Ask for merged colliders along flat ground, or a slightly rounded player hitbox.
  • Hitboxes as big as the art. Make the player’s hurtbox a bit smaller than its sprite and enemy hitboxes generous for stomping. Near misses should go the player’s way.
  • Blind jumps. If the player cannot see where they will land, they will die without learning anything. Zoom out or place a coin trail that hints at the landing.
  • Touch controls on top of the action. On phones, keep buttons in the bottom corners and keep important level geometry out of the bottom fifth of the screen.
  • Tuning on a laptop only. A jump that feels right on a keyboard can feel late on a touch screen. Test the preview on a real phone early.

Ship three levels, then grow

A platformer with three tight levels, a title screen and a level complete screen is a finished game. Publish it, share the link and watch where people die. Those spots tell you more about your next three levels than any plan. For the broader workflow (art, sound and publishing), see how to make a game without coding, and browse what people build with Startbase games. When the three levels are ready, publish it as a web game and send it to a few people with the playtesting guide in hand.

Frequently asked questions

What is coyote time in a platformer?

Coyote time is a short grace period, usually around 0.08 to 0.12 seconds, during which the player can still jump after running off a ledge. It makes jumps feel fair because human reaction time and frame timing would otherwise make many intended jumps fail.

How do I stop my platformer jump from feeling floaty?

Shorten the time to the top of the jump, increase gravity while falling (1.5 to 2 times rising gravity), and cut upward speed when the player releases the button early. Floatiness almost always comes from slow, symmetric jumps.

Can I make a platformer that works on phones?

Yes. Ask for on-screen buttons in the bottom corners and test on a real phone, since touch adds a little delay compared with a keyboard. A jump buffer helps a lot on touch screens.

How many levels does a first platformer need?

Three to five good levels are enough to publish and get feedback. Build more once you know which mechanics players enjoy and where they get stuck.

On this page

  • Start with the jump, in numbers
  • A brief that gets the feel right the first time
  • Build levels from the jump arc
  • Lay out levels by hand in the World Editor
  • Camera, checkpoints and death
  • Common platformer pitfalls
  • Ship three levels, then grow

Keep reading

More in Games
Editorial ink illustration of a tin wind-up runner on track pieces laid down ahead of it, the next track piece in ember orange
GamesNovember 22, 2026

How to Make an Endless Runner Game

An endless runner is a level generator with a character on top. Get the chunks, the speed curve and the controls right and the rest is art.

6 min read
Editorial ink illustration of a wooden turret beside a winding path of marching beetles, the turret's cannonball in ember orange
GamesNovember 22, 2026

How to Make a Tower Defense Game

Tower defense is a spreadsheet you can play. Here is how to set up the path, the waves, the towers and the money so the spreadsheet is fun.

6 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.