User Tools

Site Tools


override_animation

This is an old revision of the document!


Override Animation


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, anim_to_override, override_with)
ArgumentDescriptionTypeRequired
entityEntity for which to override the animation.EntityYes
anim_to_overrideName of the animation that will be overridden.StringYes
override_withReplacement animation to use as the override.StringYes

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.

Example:

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 .


Editor Node:

Visual Demo:

override_animation.1504229361.txt.gz · Last modified: 2017/08/31 18:29 by justin