Best way emit particles?



  • I making game, have multiple sprite in different place on screen.

    I want all sprite emit particle, different parameter particle, different color, different velocity, different size ,but i cannot do with one shared emitter?

    How i have something like this? I need more emitter?
    If i have more emitter ?how then I add emitter to sprite, otherwise it say add can 't be done inside sprite? how i add each sprite get emitter?

    please help, i confuse



  • I would propose to use FlxGroup as a game object instead of sprite. You can add 1 sprite and 1 emitter to each FlxGroup.

    FlxGroup is a FlxTypedGroup with type FlxBasic, API is here http://api.haxeflixel.com/flixel/group/FlxTypedGroup.html


Log in to reply