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

Example:

play_animation(self, "open")

Results: Plays the animation named “open” for the entity to which the script is attached.

Use the Play Animation function to …


Editor Node:

Visual Demo:

play_animation.1493076036.txt.gz · Last modified: 2017/04/24 16:20 by justin