Jump to content
Search Community

Any idea why removeFollower stops all the other followers?

Axonn test
Moderator Tag

Recommended Posts

Hello everybody ::- ). I stumbled upon a strange issue using Paths.

 

for each (var scr: Saucer in saucers) circlePath.addFollower(new PathFollower(scr), circlePath.angleToProgress(saucerIndex++ * (360 / saucers.length)));

 

Then, later:

 

circlePath.removeFollower(circlePath.getFollower(some_saucer));

 

This results in all objects on the path freezing in their places.

 

I am tweening the path like this:

 

tw = TweenMax.to(circlePath, 5, { progress:1, repeat: -1, onRepeat: CirclePathRepeated } );

 

Any tips are greatly appreciated. Am I doing something wrong? I tried like this, and same failure:

 

for each (var scr: Saucer in saucers) circlePath.addFollower(scr, circlePath.angleToProgress(saucerIndex++ * (360 / saucers.length)));

then

circlePath.removeFollower(some_saucer);

 

I got a call assigned to my TweenMax "onRepeat" and I can confirm that the TweenMax continues to operate normally.

Link to comment
Share on other sites

It works ::- ).

 

Thank you for answering so soon. My evening was getting depressed because of this ::- D. I had a tough development day yesterday and this is exactly what I *didn't* need today.

 

I was 100% sure I'm missing something in the way I'm using the library. Well... actually... it turns out I really did *grin*.

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