Skip to content

Cutscene

The only instruction that talks not to the map but to the player's screen

cutscene pan 100 100 0.06 0
cutscene zoom 0.5 0 0 0
cutscene stop 0 0 0 0
Action What it does What is in the fields
pan moves the camera to a point coordinates in tiles and a speed
zoom zoom level a level from 0 to 1
stop gives the camera back to the player
shake shakes the screen strength and duration in seconds
active whether a cutscene is running where to put the answer
getHud, setHud whether the interface is visible, and showing it an answer or a value

While a cutscene is running the player does not control the camera: it goes where the script takes it. That is good in the campaign — showing what is happening on the far side of the map — and unbearable if the script forgets to let go.

pan’s speed is the fraction of the distance covered per tick: 0.06 gives a smooth approach, one gives an instant jump. Zoom is a fraction of full: the smaller the number, the further you see.

Unofficial fan project, not affiliated with Anuke. Mindustry sprites, fonts and translations © Anuke, used under GPL-3.0; Fira Code under OFL-1.1. Site code is GPL-3.0.