Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
rivella50

Braking effect with decreasing the timeScale property

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×