0
Answered

reset an object to it's original state

Ranco 7 years ago in By Screen / Design updated by Alin Alexandru Matei 6 years ago 6

Is there a way to reset an object (after scale and/or other animation) to it's original position and size? What I do now is reverse the animation in 0 ms, but this is tedious.

Answer

Answer
Answered

In case of an animation you could have a Move behavior set after the animation with the original coordonates.

In case of the scale, you will need two behaviors after: First a Scale ( in case you first scale the object to 50% you will then need a scale of 100%) then you will need a Move behavior to reset the element coordonates.

Answer
Answered

In case of an animation you could have a Move behavior set after the animation with the original coordonates.

In case of the scale, you will need two behaviors after: First a Scale ( in case you first scale the object to 50% you will then need a scale of 100%) then you will need a Move behavior to reset the element coordonates.

Back to this subject - if I scale around the center by 80% and then scale back by %125 (again, around the center), I expect the element to be back to it's original size and position. It doesn't - it moves towards the bottom right side.

I've tested this and it worked great. I've attached a sample of the scale behavior with same numbers as you tried. Let me know if this helped:

152 - Scale Behavior.zip


Nice, but by a slight modification I've reproduced the bug. See link. Click the ball itself.

link


Ranco

Got it , I see what you mean. It seems there is a bug concerning the scale time.To fix this just change then scaletime to 1000ms and let us know if you're still having problems. Thank you for letting us know about this bug.

Almost. It still moves, but slower.

Please see this example - in page 1, place the mouse cursor on the dot in the middle of the lamp and click, you will see that it doesn't return to the same place. Slower than if the time is 200ms, though.

Second bug that I have mentioned in a different thread - see page 2. Click the tail .it should animate on every click. It does on the first click and then it doesn't. What is interesting and might point to the bug is that if you remove the animation from the second element (the wave), the tail animation works fine :)

Ranco

We were able to recreate both of this bugs and we are working to fix them. Thank you again for pointing this bugs out.