setAnimation(key)
Sets the Animation this Creature object will play, as defined in the mesh data.
Parameters
Name | Type | Description |
---|---|---|
key | string | The key of the animation to set, as defined in the mesh data. |
- Source code: gameobjects/Creature.js (Line 400)
Please login to continue.