When using ANIMDEFS to animate a sequence for a texture, maybe 10 pics,
how would one stop the animation after the first runthrough of the 10 pics?
ANIMDEFS: a question
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
- Kappes Buur
-
- Posts: 4171
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
- Contact:
ANIMDEFS: a question
Last edited by Kappes Buur on Mon Sep 13, 2021 10:34 am, edited 1 time in total.
Re: ANIMFEFS: a question
Set the duration of the last frame to the maximum, which should be 0x7FFFFFFD.
- Kappes Buur
-
- Posts: 4171
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
- Contact:
Re: ANIMFEFS: a question
Excellent. Thank you.
Re: ANIMFEFS: a question
Not that it would really be needed after that, but giving the last frame a long duration would give you an opportunity to change the texture to a non animated one using ACS.
In fact, for an animation that I only wanted to run once, I'd probably do the whole thing in ACS. It would give me finer control over it.
In fact, for an animation that I only wanted to run once, I'd probably do the whole thing in ACS. It would give me finer control over it.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49225
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ANIMFEFS: a question
That won't work because the texture animation is not synchronized with the game. It'll start to animate when the main menu pops up and quickly reach the last frame where it will stop and never advance.Cherno wrote:Set the duration of the last frame to the maximum, which should be 0x7FFFFFFD.
For any kind of controlled animation the only viable option is ACS.
-
-
- Posts: 376
- Joined: Mon Jun 27, 2016 7:26 pm
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: ANIMFEFS: a question
I thought of writing the animation as a switch animation in ANIMDEFS, and then having an ACS script call a ZScript function which activates the line the animated "switch" texture is on.
Re: ANIMFEFS: a question
If you are activating it via ACS anyway, it's only a few more lines of code in your script to get ACS to do the whole thing.
[edit] Meh! https://www.aspectsweb.co.uk/enjay/doom ... XP_ACS.pk3 [/edit]
[edit] Meh! https://www.aspectsweb.co.uk/enjay/doom ... XP_ACS.pk3 [/edit]
- Kappes Buur
-
- Posts: 4171
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
- Contact:
Re: ANIMFEFS: a question
BSODEnjay wrote: [edit] Meh![/edit]

Re: ANIMFEFS: a question
The good old days. 
