Specific questions about unit frames managing in combat animations
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Specific questions about unit frames managing in combat animations
Hello!
I have two questions I couldn't solve by looking into WML examples:
- How can I display two different defense animations for the same unit depending on it getting hit or missed?
- How can I horizontaly flip an unit image within an attack_anim frame tag (other than calling for another image)? I tried using ~FL and it didn't work... More specifically, I tried:
- image="units/natives/fishbreath.png~FL:400" => image not found
- image="units/natives/fishbreath.png:400"~FL => image not flipped
- image="units/natives/fishbreath.png:400~FL" => image not flipped
Thank you!
EDIT: I'm on version 1.15.15
I have two questions I couldn't solve by looking into WML examples:
- How can I display two different defense animations for the same unit depending on it getting hit or missed?
- How can I horizontaly flip an unit image within an attack_anim frame tag (other than calling for another image)? I tried using ~FL and it didn't work... More specifically, I tried:
- image="units/natives/fishbreath.png~FL:400" => image not found
- image="units/natives/fishbreath.png:400"~FL => image not flipped
- image="units/natives/fishbreath.png:400~FL" => image not flipped
Thank you!
EDIT: I'm on version 1.15.15
Re: Specific questions about unit frames managing in combat animations
Code: Select all
image="units/natives/fishbreath.png~FL()"
Re: Specific questions about unit frames managing in combat animations
Oh, thank you! Didn't notice that one!
Oh... thanks, but... where do I put the duration then? (400)