Simple and dumb question: how to delete an image???

Hi everyone,

I´ve spent a few hours thinking about it, and sorry if this question is quite basic:

If i want to build a game (for example a shooter), how can i delete the bullets? My primary idea is to save as much cpu as i can. Do corona the delete of the object when it goes outside the screen? Or is just a matter to set the image to non-visible???

Many thanks!!! [import]uid: 4315 topic_id: 2147 reply_id: 302147[/import]

I’d suggest having a pool of bullets, switching visibility off when they’re available for re-use (or add your own tag telling you the state). Creating and destroying DisplayObjects during the game may affect performance. [import]uid: 3953 topic_id: 2147 reply_id: 6499[/import]