Hi,
The laser turret has an energy_glow_animation parameter, which is drawn on top of the sprite when the turret is firing. Because laser turrets are beams, they are either on/off, so there is only one glow sprite per direction.
Before I go to a lot of trouble rendering a lot of sprites, does anyone know if it is possible to have multiple glows per direction? I can see that there is a frame count parameter, like there is for the gun turret rolling barrels, but my gut feeling is that this will continually loop.
Use case: an energy weapon which isn't a beam but fires a projectile, but builds up a glow, fires, then the glow fades. So the glow animation plays just once, every time the turret fires. I have a feeling that energy_glow_animation won't work or will only show for a single frame for projectiles - has anyone tried it?
Firing animations and energy glow
- Deadlock989
- Smart Inserter
- Posts: 2529
- Joined: Fri Nov 06, 2015 7:41 pm
- Deadlock989
- Smart Inserter
- Posts: 2529
- Joined: Fri Nov 06, 2015 7:41 pm
Re: Firing animations and energy glow
Given up on this for now. I think the trick is with starting_attack_animation and ending_attack_animation, which is what worms use (worms are a kind of turret). None of the main animations seem to accept an additive glow layer, which I guess is why laser turrets got their energy_glow_animation.