A_SpawnParticleEx and ANIMDEFS animations

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
D2JK
Posts: 538
Joined: Sat Aug 30, 2014 8:21 am

A_SpawnParticleEx and ANIMDEFS animations

Post by D2JK »

Hello all,

I've been replacing many purely visual effect actors using the new A_SpawnParticleEx function, and decided to try the option of using an animated graphics sequence defined in ANIMDEFS lump, as mentioned on the wiki. However, each newly spawned particle seems to play the animation in perfect sync eg. with the other particles using the same animation, instead of the new particles starting the animation from first frame in the sequence, as one would normally expect. But I suppose there is no way around this currently?

Of course, one can add variation between the individual particles by randomizing position offsets, velocity increments, acceleration, sizesteps and the two roll arguments, and get pretty good results that way too.

Return to “Scripting”