how to change size automatically on an actor in a smooth animation?
FamTechAdmin
Member Posts: 47
hi.
I was wondering how to change size automatically on an actor in a smooth animation (with the help of a timer)?
Im trying with "change size" to enlarge the actor after 5 seconds but the actor still continues growing, it doesn´t stop at the size I want it to stop at.
I want it to start small and then grow to a specific size in a smooth animation and stop at that size.
how to do I make it stop growing?
Comments
Use Interpolate.
You need to interpolate both self.widht and self.height.
Mental Donkey Games
Website - Facebook - Twitter
@NipaDidIt I tried that as well but the actor moves out of the screen. same thing with accelerate and accelerate towards. the scaling and movement doesn´t stop
@NipaDidIt The idea is that the actor starts of at the top of the screen (small) and then becomes moves towards the middle of the screen at the same time as it gets larger to a specific size.
Can you upload a screenshot of the rules you tried.
@Socks sorry for the late reply, here´s the screenshot. the strangest thing is that it worked this morning. (by the way, Im not sure if my upload worked...)
one other question how do I move for example the actor from the top of the screen to the middle at the same time as it becomes larger, instead of first moving it and then make it larger?
/Users/christosvlachos/Desktop/Skärmavbild 2015-03-11 kl. 06.07.15.png
To add a screenshot, first upload it to a file-sharing site and then embed or post the link here.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang any suggestions on sites?