User Tools

Site Tools


play_animation

This is an old revision of the document!


Play Animation


Plays an animation for the specified entity. Entities include tiles, objects, and characters.

play_animation(entity, animation_name)
ArgumentDescriptionTypeRequired
entityEntity for which to play the animation.EntityYes
animation_nameName of the animation to play (as defined in the Voxel Editor).StringYes

You can use Play Group Animation if you'd like to trigger the same animation for multiple entities that have been grouped together from the Map Editor.

Example:

play_animation(entity["chest01"], "open")

Results: Triggers the animation named “open” for the entity with an ID of “chest01”.

Use the Play Animation function to trigger animations for doors being opened and closed upon player interaction or for special NPC emotes (e.g. waving at the player).


Editor Node:

Visual Demo:

play_animation.1493146906.txt.gz · Last modified: 2017/04/25 12:01 by justin