swap particles within/outside of the group

4 views
Skip to first unread message

jaygee

unread,
Apr 2, 2010, 3:04:37 AM4/2/10
to APE General
I have two rect particles. im trying to swap them like how
swapChildren in DisplayObject work. below are my code. please help and
thanks in advance.

public function sendToHeaven(particles:AbstractParticle):void
{
//particles.py += 5;
physicsGr.removeParticle(particles);
physicsGr.removeParticle(_player);
heavenGr.addParticle(particles);
physicsGr.addParticle(_player);

}

Reply all
Reply to author
Forward
0 new messages