======Set Animation Speed====== ---- Changes the speed of an [[animation]] (in frames per second) for the specified [[entity]]. The [[animation]] name is case-sensitive. ====Signature:==== set_animation_speed(entity, animation_name, speed) ^Argument^Description^Type^Required^ |entity|[[Entity]] for which to modify the [[animation]].|[[Entity]]|Yes| |animation_name|Name of the [[animation]] (as defined in the [[Voxel Editor]]).|[[String]]|Yes| |speed|Speed of the [[animation]] (in frames per second).|[[Number]]|Yes| ====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 (for the "walk" [[animation]]) in conjunction with [[Set Movement Speed]] to speed up or slow down a [[character|character's]] movement. ---- ====Editor Node:==== {{:wiki:set_animation_speed_node.png?nolink|}} ====Visual Demo:==== {{:wiki:set_animation_speed_demo.gif?nolink|}} ~~NOTOC~~