User Tools

Site Tools


play_group_animation

Differences

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

Link to this comparison view

Next revision
Previous revision
play_group_animation [2017/04/25 09:50] – external edit 127.0.0.1play_group_animation [2021/04/21 18:38] (current) justin
Line 2: Line 2:
 ---- ----
  
-Plays an animation for all entities in the specified group.+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""anim_name")+play_group_animation(group_name, animation_name)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|"group_name"|Description.|[[String]]|Yes| +|group_name|[[groups|Group]] of [[entity|entities]] for which to trigger the [[animation]].|[[String]]|Yes| 
-"anim_name"|Description.|[[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("group_name", "anim_name")+play_group_animation("tree_group_01", "color_change");
 </code> </code>
-//Results://+//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 ...+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.1493139007.txt.gz · Last modified: 2017/04/25 09:50 by 127.0.0.1