-
Notifications
You must be signed in to change notification settings - Fork 4
Cutscenes
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.
cutscene_add_dialouge([dialouge array], actor)
Spawns a dialouge box and waits for it to dissapear before making it go away
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!
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.
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.