ID:1894718
 
Code:
        for(var/MapText/MT in src.client.screen)if(MT.name=="PressEnter")
animate(MT, alpha = 100, time = 30, loop=-1)
animate(MT, alpha = 255, time = 30, loop=-1)//???


Problem description:
Is posible to made animate loop with rewind? If yes, so how?
Nope.
So the best way is while() ?

        for(var/MapText/MT in src.client.screen)if(MT.name=="PressEnter")
while(MT)
animate(MT, alpha = 100, time = 30)//, loop=5)
sleep(30)
animate(MT, alpha = 255, time = 30)//, loop=5)
sleep(30)
Nope.

animate(MT,alpha=100,time=30,loop=-1)
animate(alpha=255,time=30)


The reason your animation wasn't looping was because you were canceling it by feeding it MT again. Only the first step of an animation can specify an object.

There is no way to make an animation rewind, but you were doing it wrong, so it made you ask the wrong question.