Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorPhillip
    • CommentTimeJul 18th 2008 edited
     
    I'd like a way to find out which actions an emitter is linked to/which actions have been added to an emitter. Especially with actions being added and removed across a period of time to achieve chains of effects on particle-clusters this would be a neat utility.
    Isn't there some array or something in which an emitters related actions are stored that I can iterate & trace in order to see which actions are ... active?

    Richard or any other FPS-crack, what's the best way to tackle this problem?

    Thanks in advance.

    Phillip
    • CommentAuthorRichard
    • CommentTimeJul 18th 2008
     
    Hi Phillip

    The actions are stored in the _actions array in the emitter. This array is protected, so the only way to access it is through the emitter. You could create a custom emitter that extends Emitter and adds methods to access the actions.

    I'll note this as a suggested feature.