Skip to content

Change Game Speed

Change Game Speed

Adjusts the speed multiplier that controls how fast the game runs.

Properties

System

Name Explanation Type
Speed Multiplier The speed multiplier to apply to the game. A value of 1.0 is normal speed. Variable or Value

Examples

Set Game Speed to Normal

Resets the game speed multiplier to the default value of 1.0.

change_game_speed(1);
{"Data":{"Multiplier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"1","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeGameSpeedCommand"}

Set Game Speed to Double

Sets the game speed multiplier to 2.0, making the game run twice as fast.

change_game_speed(2);
{"Data":{"Multiplier":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"2","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeGameSpeedCommand"}

Set Game Speed from a Variable

Sets the game speed multiplier using the value stored in global variable 0.

change_game_speed($gv[0]);
{"Data":{"Multiplier":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeGameSpeedCommand"}