— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Plays an animation for all entities in the specified group. The animation will be triggered for every entity simultaneously.
play_group_animation(group_name, animation_name)
Argument | Description | Type | Required |
---|---|---|---|
group_name | Group of 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 |
play_group_animation("tree_group_01", "color_change")
Results: Triggers the animation named “color_change” for all entities in the group named “tree_group_01”.
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.