User Tools

Site Tools


play_group_animation

This is an old revision of the document!


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.1595528994.txt.gz · Last modified: 2020/07/23 11:29 by justin