— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Overrides an entity's animation with another one. This can be used to replace a predefined animation (for example, a character's \“walk\” animation) with a custom one during the game. You can specify the same name for both parameters to revert that animation to its original settings.
override_animation(entity, animation_name, new_animation_name)
Argument | Description | Type | Required |
---|---|---|---|
entity | Entity for which to override the animation. | Entity | Yes |
animation_name | Name of the animation to override. | String | Yes |
new_animation_name | Value that will be assigned to the property. | String | Yes |
You can also store general, game-wide properties that are not specific to a tile, object, or character. For more information, see Set Global Property.
override_animation(player, "walk", "silly_walk")
Results: Until reverted, the “silly_walk” animation be used whenever the player is walking instead of the original “walk” animation.
Use the Override Animation function to .