ctomni231 / cwtactics

Custom Wars Tactics - An effort to create an open engine to emulate the gaming experience of the Nintendo Advance Wars series.
http://ctomni231.github.io/cwtactics/
Mozilla Public License 2.0
75 stars 11 forks source link

Animations do not cycle with 1:1 appearances (one flashes 3 times then the other flashes twice) #193

Closed ctomni231 closed 11 years ago

ctomni231 commented 11 years ago

Visual Bug? I knew that the animations you portrayed on the online client follow an animation cycle of 0:1:2. The user is actually referring that the animation cycle for AW units and properties actually goes 0:1:2:1. This is definitely not a bug, but instead a personal preference. I also think that we need to mess around with this because the animation of the copter looks weird with 0:1:2:1, but will be just fine with 0:1:2.

Tapsi commented 11 years ago

Maybe two possible ways

  1. Making sprites with 4 base images [ +easy, -more RAM needed, -images are doubled in the sheets]
  2. Changing the animation algorithm [ +o change of images, -complicated algorithm, -a little bit more CPU/RAM needed ]

I would go for 2 because the costs in terms of offline storage aren't so big. The algo would be complicated because the normal step number would not be 0,1,2,0,1,2 ... it will be 0,1,2,1,0,1,2,1,0. For a special group of units we will need an additional animator which uses the old 0,1,2,0,1,2,0,1,2...

At all the costs of 2: