In a shooting game targets keep coming and either get
destroyed by the
shooter or disapper outside the screen borders.
In terms of performance what is more efficient - to reuse
used targets or to
destoy them using removeMovie() and then creating new usinf
> In a shooting game ... In terms of performance what is
> more efficient - to reuse used targets or to destoy them
> using removeMovie() and then creating new usinf
It depends on the nature of the game. The fewer movie clips
to manage at any time, the easier it is for Flash to update
(thus, smoother game play) ... so for a relatively slow-paced
interrupted on occasion by sudden flurries of targets,
removing used targets
may be better.
For a rapid-fire, no holds barred, constantly action-packed
would probably set used targets invisbile
position them, then turn them visible again as needed.