rivella50 Posted August 15, 2012 Share Posted August 15, 2012 Hi there, for a mobile car game i use Starling and TweenMax for all animations. Since i would like to show a realistic driving behaviour the cars should also be able to brake and accelerate when obstacles occur or vanish. I thought about changing the timeScale property of the car's tween that needs to brake (from 1 to 0) or accelerate again (from 0 to 1) with another Tween. First tests show me that the animated cars with a changed timeScale property do not drive that fluent anymore as with a value of 1.0. What do you think, is this a good and performant approach to implement that behaviour or would there be better options ? Thanks for your opinions. Best regards valley Link to comment Share on other sites More sharing options...
Carl Posted August 15, 2012 Share Posted August 15, 2012 Hi, Tweening the timeScale of a tween is actually something we recommend and use quite often There is no reason to believe there would be any undesirable performance involved. If possible, please post a very simple example that we can easily publish that illustrates the undesirable behavior. I'm curious to see this behavior. Link to comment Share on other sites More sharing options...
rivella50 Posted August 15, 2012 Author Share Posted August 15, 2012 Thank you very much for your answer, Carl. At first i just wanted to make sure if that's the way to go for the desired behaviour. I will do some more tests first, but i would like to come back to you if the results will not get better. Best regards valley Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now