Skip to content

Cutscenes

axlforte edited this page Apr 7, 2026 · 5 revisions

The Cutscene System

The cutscene system can allow you to take control of the player and perform a fixed set of actions.

Some functions require the cutscene object to be passed through. If you spawn the cutscene in through spawn_cutscene, simply pass in actor.

Add Dialouge

cutscene_add_dialouge([dialouge array], actor)

Spawns a dialouge box and waits for it to dissapear before making it go away

Example

image

Note: dialouge is cut off as the contents of the dialouge do not matter for this function.

Do Action

cutscene_do_action([actions], actor)

Makes the player perform specific actions. The actions array is formatted similarly to the scripted inputs file, as it alternates strings of inputs and integers for input time.

the last part of the array needs to be "Maverick Dead". If this is not in the array you will get an error!

Example

image

Move Player

cutscene_move_player(Vec2, Additive)

Takes a Vec2 and moves the player to that position. If Additive is true, the Vec2 is instead added to the player position.

Additive is optional. only passing the Vec2 is fine.

Example

image

Set State

cutscene_set_player_state("state")

sets the player's state to the listed state. "state" is a string, and should match the name of an existing state.

Example

image