ID:2040269
 
BYOND Version:509
Operating System:Windows 8 64-bit
Web Browser:Chrome 48.0.2564.109
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
If an icon is in a non looping icon_state, and is animated(), it'll replay that icon_state from the beginning frame again.
Here is a demo I whipped up.
https://www.sendspace.com/file/ieiwng
I am no programmer, but I don't think this behavior is wrong. transform=matrix() would be creating a new matrix (I believe), one that hasn't done the animation loop, which would cause the animation to play again.

A work around:
Change the animation to its own icon_state. In the example I changed it to "shift" and then have the final part of the animation, in this case "yellow" in its own icon_state.

sleep(30)
icon_state = "shift"
sleep(30)
animate(src,transform=matrix(),icon_state="yellow",time = 5)
matrices don't "do animation loops" Akto.
Well excuse me for explaining it incorrectly. Just trying to help out with the issue. Work around still works..
nice work around, but i feel really uncomfortable using it. bump.
bump