Jump to content
Search Community

using setDestination() to update bezier

leonk test
Moderator Tag

Recommended Posts

Is there a way to do this?

 

I can't see a way I can update this with the setDestination() method.

 

I've tried this:

if(tween.currentProgress > 0.5)
{
tween.setDestination('x',newX);
tween.setDestination('y'newY);
}

 

As my tween has only two bezier points, so if it's done half way it's finished the first. However, this causes the script to crash.

 

I am thinking I should kill the tween and create a new one, but maybe there's another way?

 

Thanks

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.
×
×
  • Create New...