[closed] Merge unit animaions
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.
- Celtic_Minstrel
- Developer
- Posts: 2273
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Merge unit animaions
…what are you talking about? In the frames section, it clearly says this:ZombieKnight wrote: ↑April 20th, 2024, 9:58 am What's weird is that there's nowhere a word about your frame tags in the documentation.
If that's not clear enough to let you know that you can use a bunch of different frames with different names, then please let me know how I can make it clearer.Animation frames are defined using either the [frame] tag or a prefixed version of it, like [xxx_frame]. The xxx can be any sequence of alphanumeric characters. However, prefixes beginning with an underscore are reserve by the engine for internal use, and should generally not be used in user code. A frame of the type [frame] is said to have an empty prefix.
-
- Posts: 1280
- Joined: August 26th, 2018, 11:46 pm
- Location: A country place, far outside the Wire
Re: Merge unit animaions
I just ran into that the other day trying to figure out what [missle_frame] was. I had to read it a couple times, but I think it's not unclear. What would help me is an explanation of why you would create [my_frame] or [your_frame], preferably with an example. I think I read somewhere that [frame] and [missle_frame] could run concurrently, perhaps this is the/a reason? Either way, that's the kind of thing I'm thinking of as an example of why you would create "named frames".Celtic_Minstrel wrote: ↑April 20th, 2024, 1:58 pm In the frames section, it clearly says this:
If that's not clear enough to let you know that you can use a bunch of different frames with different names, then please let me know how I can make it clearer.Animation frames are defined using either the [frame] tag or a prefixed version of it, like [xxx_frame]. The xxx can be any sequence of alphanumeric characters. However, prefixes beginning with an underscore are reserve by the engine for internal use, and should generally not be used in user code. A frame of the type [frame] is said to have an empty prefix.
Speak softly, and carry Doombringer.
- Celtic_Minstrel
- Developer
- Posts: 2273
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: [closed] Merge unit animaions
That's at least mentioned here. Maybe that's too easy to miss…?
-
- Posts: 1280
- Joined: August 26th, 2018, 11:46 pm
- Location: A country place, far outside the Wire
Re: [closed] Merge unit animaions
No, now that you mention it I think it's fine. What probably happened was I followed a link to AnimationWML#Frames so I didn't read the entire page from start to finish. Or I just skimmed past it.
Maybe copy that "At any given time, an animation will display one frame for each frame prefix it can find" into the [frames] section?
Maybe copy that "At any given time, an animation will display one frame for each frame prefix it can find" into the [frames] section?
Speak softly, and carry Doombringer.
- ZombieKnight
- Posts: 249
- Joined: June 27th, 2022, 2:26 pm
- Location: Czech Republic
Re: [closed] Merge unit animaions
You're right.
I haven't read it all...
I haven't read it all...
I had saurian in profile before, but I've merged my discord profile with forum one...
Working on campaign Bandits from Brown Hills
Working on campaign Bandits from Brown Hills