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

    • CommentAuthorfigure8
    • CommentTimeJul 23rd 2010 edited
     
    hey,
    i've been creating particles by hand and adding them with the appropriate addExistingParticles method to the emitter. this completely works fine, i can add any initializer or action to them. but: is there any way to tween them back into their initial positions after being moved by an action?

    what i'm aiming to is sth. like that: click!, which i've written once by myself. i'm trying to convert that into a flint-based one to use some amazing features of it. but yet i haven't found a way to let the emitter remember which particle was set on which position. shall i try storing them on a complete own action which somehow iterates the particle-dictionary to move then them?

    thanks in advance,
    marvin.
    • CommentAuthorRichard
    • CommentTimeJul 24th 2010
     
    Hi

    The particle object contains a dictionary property. This is intended for custom actions, initializers or any other custom code to store additional properties in the particle and would be the appropriate place to store the initial position of the particle so you can use it later.
    • CommentAuthorfigure8
    • CommentTimeJul 26th 2010
     
    hi richard,
    thanks - i've stumbled upon one post here as well which shows the use of the particles' dictionary. i'll give it a try soon.