A potentially “safer” approach is to place an invisible sensor that covers the entire screen. Then use the “ended” phase in its collision listener. That way, objects that travel off the screen in any direction (left, up, down, whatever) will register that they exited the screen and you can remove them. Another slight advantage is that if you have small objects and giant objects, like big vs. small asteroids in the classic game, you don’t need to worry about the bigger objects being “prematurely deleted” if part of them in still on screen when they hit some arbitrary boundary line off the screen.
Brent [import]uid: 9747 topic_id: 25108 reply_id: 102034[/import]