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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
play_animation [2017/04/24 16:25] justinplay_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 13: Line 14:
  
 <WRAP center round info 100%> <WRAP center round info 100%>
-If you want to trigger the same animation for multiple entities that have been previously grouped together from the Map Editor, you can use [[Play Group Animation]].+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.
 </WRAP> </WRAP>
  
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%>
-Use the **Play Animation** function to ...+Use the **Play Animation** function to trigger animations for doors being opened and closed upon player interaction or for special NPC emotes (e.gwaving at the player).
 </WRAP> </WRAP>
  
play_animation.txt · Last modified: 2021/04/21 18:37 by justin