User Tools

Site Tools


play_group_animation

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
play_group_animation [2017/04/25 15:21] justinplay_group_animation [2020/07/23 11:55] justin
Line 2: Line 2:
 ---- ----
  
-Plays an animation for all entities in the specified group. The animation will be triggered for every entity simultaneously.+Plays an [[animation]] for all [[entity|entities]] in the specified [[groups|group]]. The [[animation]] will be triggered for every [[entity]] simultaneously.
  
 +====Signature:====
 <code python> <code python>
 play_group_animation(group_name, animation_name) play_group_animation(group_name, animation_name)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|group_name|Group of entities for which to trigger the animation.|[[String]]|Yes| +|group_name|[[groups|Group]] of [[entity|entities]] for which to trigger the [[animation]].|[[String]]|Yes| 
-|animation_name|Name of the animation to play (as defined in the [[Voxel Editor]]).|[[String]]|Yes|+|animation_name|Name of the [[animation]] to play (as defined in the [[Voxel Editor]]).|[[String]]|Yes|
  
 ====Example:==== ====Example:====
-<code python>+<code bauxite>
 play_group_animation("tree_group_01", "color_change") play_group_animation("tree_group_01", "color_change")
 </code> </code>
-//Results:// Triggers the animation named "color_change" for all entities in the group named "tree_group_01".+//Results:// Triggers the [[animation]] named "color_change" for all [[entity|entities]] in the [[groups|group]] named "tree_group_01".
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Play Group Animation** function to change the appearance of multiple tiles, objects or characters all at once, for example to raise spikes from a room full of trap tiles or to trigger a crowd of NPCs to start cheering.+Use the **Play Group Animation** function to change the appearance of multiple [[tile|tiles]][[object|objects]], or [[character|characters]] all at once, for example to raise spikes from a room full of trap [[tile|tiles]] or to trigger a crowd of [[NPC|NPCs]] to start cheering.
 </WRAP> </WRAP>
  
Line 27: Line 28:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:play_group_animation_node.png?nolink|}}+{{:play_group_animation_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:play_group_animation_demo.gif?nolink|}}+{{:play_group_animation_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
play_group_animation.txt · Last modified: 2021/04/21 18:38 by justin