Jump to content
Search Community

Physics2D and how to remove it

LynnB test
Moderator Tag

Recommended Posts

I've been trying like heck to remove a physics2D tween without success. I know you can stop, pause, reverse, restart but I haven't figured out how to remove it. I have a button on rollover that starts it (setting that up is easy) on rollout I want the tween to be removed, to disappear. Is this possible?

 

Thanks!

Link to comment
Share on other sites

Oh, you mean you want to remove the object that the tween is tweening (target)? If so, you could use an onComplete to removeChild() in AS3 or removeMovieClip() in AS2. Feel free to autoAlpha to 0 but that won't remove the object from the stage. It'll just set the visible property to false when alpha hits 0.

 

Does that answer your question?

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...