This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
play_group_animation [2018/03/16 09:46] – justin | play_group_animation [2020/07/23 11:29] – 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 |
====Signature: | ====Signature: | ||
Line 10: | 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]] |
- | |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: | ||
- | < | + | < |
play_group_animation(" | play_group_animation(" | ||
</ | </ | ||
- | // | + | // |
<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 |
</ | </ | ||