This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
override_animation [2017/08/31 17:01] – created justin | override_animation [2021/04/21 18:37] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Overrides an entity' | + | Overrides an [[entity|entity' |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | override_animation(entity, | + | override_animation(entity, |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity|Entity | + | |entity|[[Entity]] to override the [[animation]] for.|[[Entity]]|Yes| |
- | |animation_name|Name of the animation | + | |anim_to_override|Name of the [[animation]] that will be overridden.|[[String]]|Yes| |
- | |new_animation_name|Value that will be assigned | + | |override_with|Name of the [[animation]] |
- | + | ||
- | <WRAP center round info 100%> | + | |
- | You can also store general, game-wide properties that are not specific to a tile, object, or character. For more information, | + | |
- | </ | + | |
====Example: | ====Example: | ||
- | < | + | < |
- | override_animation(player, | + | override_animation(player, |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Override Animation** function to . | + | Use the **Override Animation** function |
</ | </ | ||
Line 32: | Line 29: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
</ | </ |