User Tools

Site Tools


set_animation_speed

This is an old revision of the document!


Set Animation Speed


Changes the speed of an animation (in frames per second) for the specified entity. The animation name is case-sensitive.

set_animation_speed(entity, animation_name, speed)
ArgumentDescriptionTypeRequired
entityEntity for which to modify the animation.EntityYes
animation_nameName of the animation (as defined in the Voxel Editor).StringYes
speedSpeed of the animation (in frames per second).DecimalYes

Example:

set_animation_speed(entity["purple_slime"], "idle", 12)

Results: The purple slime's idle animation is updated to a speed of 12 frames per second.

Use the Set Animation Speed function in conjunction with Set Movement Speed to


Editor Node:

Visual Demo:

set_animation_speed.1494371593.txt.gz · Last modified: 2017/05/09 16:13 by justin