This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_animation_speed [2017/05/09 16:13] – justin | set_animation_speed [2021/04/21 18:49] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes the speed of an animation (in frames per second) for the specified entity. The animation name is case-sensitive. | + | Changes the speed of an [[animation]] (in frames per second) for the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_animation_speed(entity, | set_animation_speed(entity, | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity|Entity for which to modify the animation.|[[Entity]]|Yes| | + | |entity|[[Entity]] for which to modify the [[animation]].|[[Entity]]|Yes| |
- | |animation_name|Name of the animation (as defined in the Voxel Editor).|[[String]]|Yes| | + | |animation_name|Name of the [[animation]] (as defined in the [[Voxel Editor]]).|[[String]]|Yes| |
- | |speed|Speed of the animation (in frames per second).|[[Decimal]]|Yes| | + | |speed|Speed of the [[animation]] (in frames per second).|[[Number]]|Yes| |
====Example: | ====Example: | ||
- | < | + | < |
- | set_animation_speed(entity[" | + | set_animation_speed(entity[" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Animation Speed** function in conjunction with [[Set Movement Speed]] to | + | Use the **Set Animation Speed** function |
</ | </ | ||