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, 20265 min read

Pause Menus and Settings Screens

Pause looks like a menu but is really a promise: nothing happens to you while you are gone. Here is how to keep it, and the settings every game should offer.

Startbase Team
Editorial ink illustration of a reel-to-reel tape machine with its pause key pressed and a row of knobs, the pause key in ember orange

Key takeaways

  • Pausing means stopping the game clock: physics, timers, cooldowns and tweens, while the menu keeps animating.
  • Auto-pause when the tab is hidden or the window loses focus, and never auto-resume.
  • Separate music and effects volume, a shake and reduced motion option, and settings that apply live and save at once cover most players.

A pause menu stops the game and offers a few choices (Resume, Restart, Settings, Quit), and a settings screen lets players adjust sound, motion, controls and display. The tricky part is not the menu but the pause itself: everything that depends on time (physics, enemy timers, cooldowns, animations) must stop, while the menu keeps running. Add auto-pause when the player switches tabs, a guard against the resume click firing a shot, and settings that apply immediately and persist, and you have covered what players expect.

What pause has to stop

Most games run on a loop that measures how much time passed since the last frame and advances the world by that amount. Pausing means the world gets no time. The cleanest way is two clocks: a game clock that only advances while playing, and a real clock for the interface. Everything in the world reads the game clock. Then list what else lives on its own timer, because each one is a pause bug waiting to happen:

  • Physics: no steps while paused.
  • Gameplay timers: spawn timers, power-up durations, combo windows, the level clock.
  • Cooldowns based on wall time: anything that compares against `Date.now()` keeps counting through the pause. Compare against the game clock instead.
  • Tweens and particles: animation libraries often run on their own ticker. Pause the world's tweens, keep the menu's.
  • Sound: pause or duck the world's sounds. A looping engine or footstep that keeps playing during pause is jarring. Menu sounds still play.

Tip

Clamp the time step on the first frame after resuming (and every frame, to around 0.1 seconds at most). Without it, a long pause or a backgrounded tab produces one enormous step, and the player falls through the floor.

Auto-pause, and why it should never auto-resume

Browser games lose the player constantly: a message arrives, the phone locks, they switch tabs. Pause automatically when:

  • the page becomes hidden (the browser's visibility change event),
  • the window loses focus on desktop,
  • a gamepad disconnects,
  • the phone rotates to an orientation your game does not support.

When the player comes back, show the pause menu and wait. Resuming automatically drops them into the action before their thumbs are on the screen. For fast action games, a short 3, 2, 1 countdown after pressing Resume (about 1.5 seconds total) gives them time to get ready; puzzle and turn-based games can resume instantly.

The pause menu itself

  • Open it from a visible button in a top corner on touch screens (at least about 44 by 44 points, away from the controls), and from Escape, P or the gamepad Start button.
  • Dim the game behind it to around 40 to 60 percent and keep the frozen frame visible, so players remember the situation they are returning to.
  • Four items is enough: Resume, Restart, Settings, Quit. Resume is first and focused by default.
  • Confirm destructive choices. Restart and Quit ask once if they would lose progress ("Quit to menu? Your progress since the last checkpoint will be lost.").
  • Same key toggles. Escape opens and closes the menu. Back in settings goes to the pause menu, not straight to the game.

New Startbase games start with pause and settings screens already built as files, so you can rearrange them, restyle them or add a control by hand in the UI Editor. Its toggles and sliders set values the game keeps, and every button is reachable with a keyboard or gamepad.

Settings players expect

A small game does not need fifty settings. These cover most players and most complaints:

  • Music volume and effects volume, separate, 0 to 100. Default around 70 to 80 so players have room to go up. Mute should be one tap away, separate from the sliders.
  • Vibration on or off, on phones that support it.
  • Screen shake on, reduced or off, and reduced motion, which also tones down flashes and swaps big transitions for fades. Respect the system reduced motion setting as the default.
  • Text size for games with reading, and a high contrast option if your art makes text hard to read.
  • Controls: key remapping on desktop; on touch, control size and left-handed layout. For 3D games, camera sensitivity and invert Y.
  • Language, if the game is translated.
  • Reset to defaults, at the bottom.

The game accessibility guide explains the reasoning behind each of these, and our touch controls guide covers control size and placement.

Applying and saving settings

  • Apply live. Moving the music slider changes the music while the menu is open. Players tune by ear, not by number.
  • Save on change, not on closing the menu. A closed tab should not lose settings.
  • Keep settings separate from progress. Resetting a save file should not reset someone's volume. Settings are per device (local) by default; syncing them to an account is a nice extra, not a requirement.
  • Load before the first sound. Read settings before the title music starts, or the first second plays at full volume.

Classic pause bugs

  • The resume click fires a shot or a jump. The pointer up from the Resume button reaches the game. Ignore game input for the first 100 to 150 ms after resuming, or until all buttons are released.
  • Pause during a transition or a death animation leaves the game in a half state. Either block pause during those moments or make sure the transition reads the game clock too.
  • Buffs expire while paused because their timer used wall time.
  • Double pause. Auto-pause and the button both open the menu; Resume closes one and the game runs behind the other. Pause should be one flag, not a counter of menus.
  • Multiplayer cannot pause. In an online room, the menu opens but the game keeps running. Say so ("The game continues while this menu is open") instead of pretending to pause.
  • Audio context stays suspended. Some browsers start audio suspended until a user gesture; resuming from pause is a good moment to resume the audio context too.

A brief for pause and settings

Rework pause in my 2D shooter. Use a game clock that stops while paused for physics, spawns, cooldowns, power-up timers and world tweens; the menu runs on real time. Clamp the frame step to 0.1 s. Auto-pause when the tab is hidden, the window loses focus or a gamepad disconnects, and never auto-resume. The pause menu has Resume (focused), Restart and Quit (both confirm), and Settings; the game is dimmed to 50 percent behind it. Resume runs a 3, 2, 1 countdown and ignores game input for 150 ms. Settings: music and effects volume (default 75), mute, vibration, screen shake off/reduced/full, reduced motion (defaults to the system setting), and reset. Apply live, save on every change, separate from progress.

Then test it the way players break it: pause mid-jump, switch tabs during a boss, rotate the phone, press Escape twice quickly. The agent plays the game in a real browser after building, but these specific sequences are worth doing by hand. For multiplayer games, our multiplayer guide covers what a shared room means for pausing.

Frequently asked questions

How do I pause a game properly?

Run the world on a game clock that stops advancing while paused, covering physics, timers, cooldowns, tweens and world sounds, while the menu runs on real time. Clamp the time step on resume so nothing jumps.

What should a pause menu include?

Resume, Restart, Settings and Quit, with Resume focused first and a confirmation before anything that loses progress. More than that usually belongs in Settings.

What settings should a small game have?

Separate music and effects volume, mute, vibration, screen shake and reduced motion, control options (remapping or control size), text size if there is reading, and reset to defaults.

Should a game pause when the player switches tabs?

Yes. Pause when the page is hidden or loses focus, and wait for the player to press Resume when they return instead of resuming automatically.

On this page

  • What pause has to stop
  • Auto-pause, and why it should never auto-resume
  • The pause menu itself
  • Settings players expect
  • Applying and saving settings
  • Classic pause bugs
  • A brief for pause and settings

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.