I’ve came across a weird bug with animating “tint” and deleting and spawning objects. Apparently if you delete and spawn objects in the same frame, and try to animate the spawned object’s tint on init(), it doesn’t work properly and the objects’ materials get mixed up somehow. It gets even more obvious when both objects animate their sprites’ tint on init().
It’s a bit hard to explain, so I made a little example. Try doing: left-click, right-click, left-click, and you will see it. The red squares are supposed to animate their opacity.
Animate Tint Bug.zip (10.9 KB)
I didn’t do exhaustive tests, but animating scale works just fine, I think it’s just tint that’s an issue. Also, go.set(url, "tint", color)
works fine, only trying to animate it messes up. Delaying the animation generally gets around the issue, but in my full game project it’s not a 100% functional workaround, possibly because I’m deleting and spawning other objects quite often.
This is probably closely related, or just a duplicate of these other bug reports: Go.animate('#sprite','tint',...) bug (DEF-2095), and Animation stops when another game object is deleted