Page 1 of 1

Restart animation

Posted: Sun Jun 15, 2014 10:37 am
by Nigel
How to restart an animation when the player is near of it ? that's what i was wondering last time. (so if someone know how to do it :3)
If there is not solution for it, maybe it could be usefull to have something like a Switch layer but for animation. I mean a tile that can activate one or several animation(s) and maybe a tile to desactivate.

Re: Restart animation

Posted: Sun Jun 15, 2014 10:55 am
by imp
As far as i know everything is automatically and can't be used properly

Re: Restart animation

Posted: Sun Jun 15, 2014 10:59 am
by Nigel
I don't understand what you mean

Re: Restart animation

Posted: Sun Jun 15, 2014 11:09 am
by deen
The server does not know about graphical stuff like animations. The client does the animations on its own, based on your game time. Changing this would make us incompatible with default Teeworlds client, and therefore is not going to happen.

Re: Restart animation

Posted: Sun Jun 15, 2014 11:23 am
by Nigel
Okay I understand. But could it be possible to restart the game time during the animation (in the animation's zone) and when out of animation's zone resume it ? It means to keep the game time of the player in memory during the animation.

Re: Restart animation

Posted: Sun Jun 15, 2014 12:27 pm
by deen
That would destroy all other time based animations at the same time. I think it's a bad hack.

Re: Restart animation

Posted: Sun Jun 15, 2014 12:57 pm
by Nigel
Yes but the maper need to use it properly. But I understand that it's complicated :)