User Tools

Site Tools


play_animation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
play_animation [2017/04/24 16:40]
justin
play_animation [2018/03/16 09:46]
justin
Line 4: Line 4:
 Plays an animation for the specified entity. Entities include tiles, objects, and characters. Plays an animation for the specified entity. Entities include tiles, objects, and characters.
  
 +====Signature:​====
 <code python> <code python>
 play_animation(entity,​ animation_name) play_animation(entity,​ animation_name)
Line 20: Line 21:
 play_animation(entity["​chest01"​],​ "​open"​) play_animation(entity["​chest01"​],​ "​open"​)
 </​code>​ </​code>​
-//​Results:// ​Plays the animation named "​open"​ for the entity with an ID of "​chest01"​.+//​Results:// ​Triggers ​the animation named "​open"​ for the entity with an ID of "​chest01"​.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
play_animation.txt ยท Last modified: 2018/03/16 09:46 by justin