By this I mean not the layout, rather what u can c on the actual screen. Thanks
Develop games in your browser. Powerful, performant & highly capable.
Add an event on your sprite that checks "Is on-screen" and then destroy the sprite if false.