the_iron_duke wrote:I am seeking information on modifying the unit (gunfire) animations.
I understand that the position of the animation can be changed by modifying the x/y offsets. I am interested in changing the animations themselves and for that I need to understand how the animation images work.
Here is an infantry gunfire animation. Could someone explain how to read it? I have filled the transparent background with a light blue colour to make the animation more obvious.
I presume it is to be read like a page of writing, from left to right in lines going down the page. There is no image in the top-right - is that frame skipped or is it not skipped and there is no gunfire going on? What happens if the unit is shooting in the opposite direction - is the whole animation sheet flipped horizontally automatically in the game?
Also, is there any way of playing back an animation or can that only be done by initiating combat in-game?
Haven't looked myself into the anim part much, but from what I know and from the pic posted it's a sequence of individual small pics arranged together so you get this bigger one. Each stage of the anim is a single frame, just played by the game after eachother so you get the impression of animation.
The question is, how many frames do we see there? I am not even sure how many columns that are - could be 6, and 6 rows. So this woud be 36 single pics/frames. Also I am not sure about the exact order in which all those frames are played in-game, but probably indeed left-right from the 1st row and so on.
The empty spote upper right does IMO not mean no pic or that it would be skipped, but it's empty (or rather the background is fully transparent) - so when this frame isplayed there's no gunfire, which makes sense if you remember the inf firing sequence in PzC - several shots or salvos but no gunfire all the time.