when my char shoots there's some muzzle flash.
the flash is an sprite that's created with "create object" and destroyed once the anim is over.
I have 2 animations for the muzzle and I want the sprite to choose randomly between those 2. let's call them "muzzle1" and "muzzle2".
I made a global variable that randomly chooses 0 or 1 at everypick, but that makes the muzzle change all the time in the same sprite.
What I want it to do is choose one of the 2 anims but only when it's created and stick to that anim until it's over.