User Tools

Site Tools


play_group_animation

Play Group Animation


Plays an animation for all entities in the specified group. The animation will be triggered for every entity simultaneously.

Signature:

play_group_animation(group_name, animation_name)
ArgumentDescriptionTypeRequired
group_nameGroup of entities for which to trigger the animation.StringYes
animation_nameName of the animation to play (as defined in the Voxel Editor).StringYes

Example:

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.


Editor Node:

Visual Demo:

play_group_animation.txt · Last modified: 2018/03/16 09:46 by justin