Skip to content

Touch Controls

On a phone or tablet, Play shows a move stick on the left, a look drag on the right and the game's own action buttons — Jump, Throw, Grab, Use… — exactly the actions the game needs. Every control can be moved, resized and faded, and any button can wear your own pressed and released images.

Sky Run in Play on a folded phone: the ✕, the Playing chip and the Menu pill along the top, the game's bar with the stage name, the timer and the coins below them, the move stick in the lower left and the Jump button in the lower right, over the first platform of the level.

Sky Run on a folded phone.

On a narrow phone the game's own bar (stage, timer, score) sits below the ✕, the Playing chip and the Menu pill, and anything the game puts at the very bottom moves up above the play view's links, so nothing the game shows is hidden behind the app's buttons (since 1.57).

The touch controls layout editor on a folded phone, with the Jump button selected: This game or All games, Hide, Size and Opacity sliders, Default place, Reset, Cancel and Save at the top, the move stick and the Jump button below with their names. 1: save for this game or all games. 2: the selected Jump button.

The touch controls layout editor, Jump selected.

  1. This game or All games: which games the layout is saved for.
  2. The selected button (Jump); its Size and Opacity are the sliders above.

For the phone layout itself — the bottom bar, the selection toolbar, the dock and its tabs, and the sheets — see The Interface: On a phone.

When they show

Settings ▸ Touch controls ▸ Show touch controls:

  • Auto (default) — on a touch screen, or as soon as you touch the screen (a touchscreen laptop, say).
  • Always — on, even with a mouse.
  • Never — hidden everywhere.

Show in edit also draws the action buttons while you edit (they press their keys there too); the stick and the look drag only exist in Play. Touch controls are screen controls, so they never show in VR.

Playing with them

  • Several fingers at once: hold the stick and press Jump — or two buttons — at the same time.
  • The stick: touch its drawn circle to steer from the circle's centre, or touch anywhere else on the left half and the stick appears under your thumb.
  • A still tap on the view uses what the crosshair is on; a drag looks around. Look speed sets how far a drag turns the view.
  • A short tick on each press, on phones that can vibrate: it follows Touch feedback (its Buttons and switches switch). It is the one touch feedback that plays in Play.

Which buttons a game gets

Games that declare their actions show exactly those:

Game Controls
Sky Run stick + Jump
Target Toss Throw — hold to charge, let go to throw; drag anywhere to aim
Mini Golf stick + look; putt by dragging back from the ball
Marble Maze no stick — drag on the board to tilt it
Towers Grab — hold it to carry a block
The Alchemist's Escape Use + Hint
Race on foot: walk controls; in a car: stick steers, Gas, Brake, Reset — see Race on a phone

Any other scene gets buttons from what it already has: a walking Character Controller gives Jump, a flying one Up / Down (only where the scene allows flying), and every key a Key Press node listens for (other than WASD and the arrows) becomes a labelled button — up to six. The games that come as modules (Dungeon Realms, Football, Untangle, Waves) get these automatic buttons until they declare their own.

Arranging them

Open the layout editor from Settings ▸ Touch controls ▸ Edit layout, or during a game from the pause menu's Touch controls row:

  • Drag any control to move it. Select it to change its Size and Opacity or Hide it — resize also with the round corner grip, or by pinching it with a second finger. Default place puts it back.
  • This game / All games chooses where Save stores the layout; a game's own layout wins over the all-games one.
  • For players (since 1.74) saves the layout in the scene, for everyone who plays it. It shows only to people who can edit the scene, never in the play view or for a viewer. See below.
  • Reset returns to the default arrangement; Cancel (or Esc) discards your changes.

This game and All games layouts are saved on this device.

A layout that travels with your game

Since 1.74. Arrange the stick and buttons, pick For players and press Save. The layout is saved in the scene, so everyone who opens it — in the editor, in a shared play link, in an exported game — starts from your arrangement. Reset with For players picked removes it from the scene.

A player's own layout still wins: anything they arranged on their device (This game or All games) replaces your placement for that control, and controls they never moved keep yours.

A scene holds one such layout. It stores where each control sits (as a part of the screen), its size and its opacity — not the button looks, which stay on each device.

Button looks

Settings ▸ Touch controls ▸ Button looks lists every button with a preview of both states. For each button: a Released and a Pressed image (Upload a PNG or SVG of up to 160 KB, or From Explorer…: since 1.79 the Explorer picker with thumbnails, search, folders and Recent), a Tint for the built-in icon, and the icon Size. Default look goes back to the themed icons. Images are kept in the browser's local storage, which is why they must stay small.

Settings

Setting Default What it does
Show touch controls Auto Auto / Always / Never
Show in edit off action buttons while editing too
Look speed 1× (0.25–3) how far a drag turns the view
Edit layout · Reset — the layout editor; Reset clears every saved layout
Button looks themed icons per button: released / pressed image, tint, icon size

Search Settings for touch, joystick, buttons, haptic or vibration to find this section.

Touch feedback

New in 1.79, in Settings ▸ Touch controls ▸ Touch feedback (this device). It replaces Haptic tick: your choice carries over (on becomes Light, off becomes Off).

Phones give a light touch of feedback as you use the editor: a tick as a slider or a dragged number moves, a firmer one at its default and at whole numbers, a bump at each end, a different feel for switching on and off, a pulse on a long press, and one when a move, a key or a UV point snaps.

Row What it does
Touch feedback Off, Light (the default), Medium or Strong. It starts Off when your device asks for reduced motion.
Buttons and switches switches, choices, tabs and the on-screen game buttons
Sliders and values a tick per step, a firmer one at the default and at the ends
Snapping when a move, a key or a UV point snaps into place
Gestures a long press, picking up a card or a tab
Try it a slider to feel the level: a tick per step, a firmer one at 5, a bump at each end
  • Only touch gives feedback (a pen counts); a mouse, a keyboard or a gamepad never vibrates.
  • It is silent in Interact and Play (a game's own vibration is the Vibrate node's) apart from the on-screen game buttons' tick, and while a film take records. Film mode's own countdown and marker ticks stay; Touch feedback Off silences them too.
  • It works in Chrome on Android. iPhone and iPad browsers cannot vibrate for a web page, so there Settings shows Not available and says why.
  • Reset Touch controls resets it too.

Trackpads

In the editor viewport a laptop trackpad's two-finger swipe pans and a pinch zooms — Safari's pinch gesture on a Mac included — while a mouse wheel keeps zooming as before. Settings ▸ Controls has the pan and pinch switches; see The mouse wheel.

For module authors: declaring actions

register(api) {
  // call it when your game becomes active; keep the returned off() and call it when it ends
  const off = api.input?.actions?.(
    [
      'jump',                                    // a built-in: jump, fire, interact, grab,
                                                 // crouch, sprint, reload, up, down
      { id: 'boost', label: 'Boost', keys: ['ShiftLeft'] },             // presses a key while held
      { id: 'fire', label: 'Throw', onPress: charge, onRelease: release } // your own handlers
    ],
    { preset: 'shooter' }  // platformer | shooter | toss | golf | fly | explore | drive | custom
                           // optional: stick: false, look: false
  );
}
  • keys send real key events (KeyboardEvent codes), so anything that already reads the keyboard — api.onInput, api.input().codes, Key Press nodes — works with no extra code.
  • pointer: 'press' | 'tap' makes a button a primary click at the crosshair (held, or a single tap).
  • onPress / onRelease run on this peer only; send your own message if others must know.
  • A second call replaces your set; everything is removed when the module unloads.
  • preset: 'drive' (since 1.26) is the vehicle layout: the stick steers, there is no look drag, and the pedals sit under the right thumb. A stick the module declared stays live under its own claimInput('keys').
  • api.input().touch reads the on-screen move stick as {x, y} from -1 to 1 (up is -y).
  • Feature-detect (api.input?.actions?.(…)) to stay compatible with older cores.

See the Module SDK.