Changing properties in 2D sprite animation causes them to be inherited

When adding a property track to change the display in 2D sprite animation, the changes persist even after switching to another animation.

For example, if you want to make the sprite semi-transparent only while walking, you can achieve this by setting the walking motion to semi-transparent using Modulate. However, the motion when standing still afterward also becomes semi-transparent. Is there a way to initialize or specify the property at the end of the animation? Thank you.

The simplest approach is to reset Modulate at the beginning of the idle animation.
If it’s not a looping animation, resetting it at the end of the animation also seems like a good option.

Ah, so that’s the specification after all. It feels a bit unnatural to set all parameters for every animation that might transition, but I’ll give it a try. Thank you.

It might feel a bit unusual at first.
However, there are also benefits such as:

  • You can maintain transparency, allowing for stealth mechanics where the character remains invisible until taking damage.
  • Since sprite information is preserved when switching, you can implement weapon appearance changes simply by creating weapon-switching animations.
  • You can modify variables within animations and have those changes persist.

Once you get used to it, you might be able to do some interesting things…!