Set Movement Speed


Changes the movement speed (in voxels per second) of the specified character.

Signature:

set_movement_speed(character, speed)
ArgumentDescriptionTypeRequired
characterCharacter for which to update the movement speed.EntityYes
speedNew movement speed (in voxels per second).NumberYes

Set Animation Speed would typically be used along with this function to simultaneously speed up or slow down both the character's walk animation and walking speed.

Example:

set_movement_speed(player, 60);

Results: The player's movement speed is changed to 60 voxels per second.

Use the Set Movement Speed function to increase the player's speed as part of progressing through the story or to provide a temporary speed boost to a character.


Editor Node:

Visual Demo: