User Tools

Site Tools


set_movement_speed

This is an old revision of the document!


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).DecimalYes

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:

set_movement_speed.1521218978.txt.gz · Last modified: 2018/03/16 09:49 by justin