User Tools

Site Tools


set_animation_speed

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
set_animation_speed [2018/03/16 09:48]
justin
set_animation_speed [2020/05/03 15:29] (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 ​[[entity]]. The [[animation]] name is case-sensitive.
  
 ====Signature:​==== ====Signature:​====
Line 10: 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:​====
-<​code ​python>+<​code ​bauxite>
 set_animation_speed(entity["​purple_slime"​],​ "​idle",​ 12) set_animation_speed(entity["​purple_slime"​],​ "​idle",​ 12)
 </​code>​ </​code>​
-//​Results://​ The purple slime'​s idle animation is updated to a speed of 12 frames per second.+//​Results://​ The purple slime'​s idle [[animation]] is updated to a speed of 12 frames per second.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Animation Speed** function (for the "​walk"​ animation) in conjunction with [[Set Movement Speed]] to speed up or slow down a character'​s movement.+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.
 </​WRAP>​ </​WRAP>​
  
set_animation_speed.txt · Last modified: 2020/05/03 15:29 by justin