Skip to reading
Mobile Game Setup & Testing

Make pinch and pan predictable

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

CAMERA AND LAYOUT

Settings Scene Navigation. Zoom and pan have separate switches and limits.

01. Turn on Pinch / Wheel Zoom for a room that benefits from inspection. Set Closest Zoom and Farthest Zoom so clue text can be read without getting so close that the clue leaves the frame. On desktop, use the wheel as an early check. On the phone, move two fingers apart and together over the same clue.

02. Enable Two Finger Pan when the room has useful content outside the original framing. Set Maximum Pan from Center and drag both fingers together. In the inspected 3D pan code, a positive limit clamps the offset. Zero skips the clamp. To turn panning off, clear the pan checkbox.

03. Inspect the individual room’s scene-navigation settings. An inherited room follows global settings. A disabled room skips navigation; an override uses its own values. If pinching works in the laboratory but fails on the roof, compare those room records before changing the global setting.

A two-finger pan, a two-finger inventory shortcut and the operating system can all be trying to interpret the same fingers. Start with one purpose for a two-finger gesture on each screen. If a modal is open, try pinching and releasing over its buttons. The room camera should stay where the player left it.

Walk, zoom, use an item and back out. Check that the hit area stays lined up with its artwork at both zoom limits. A menu drawn correctly over a zoomed room does not prove the room receives the correct touch coordinates.

Page 7 of 22Permalink
Go to page