Cutscene
The only instruction that talks not to the map but to the player's screen
mediumYou need: What a world processor is, A message to the player
cutscene pan 100 100 0.06 0cutscene zoom 0.5 0 0 0cutscene 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 |
The camera has to be given back
Section titled “The camera has to be given back”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.
Speed and zoom
Section titled “Speed and zoom”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.