**This is an old revision of the document!**

Destroy outside screen behavior

This is one of the most simple, yet useful, behaviors. Add it to an object and then, whenever an instance of this object goes out of the bounds of the screen, this instance will be destroyed.

It's a simple way of ensuring that your game is not filled with garbage objects that could slow it down.

Add behavior to object

To add a behavior to an object, first open the object properties by right clicking on the object. Select “Edit object” from the popup list. Then select behaviors tab. Click the add behavior button.

Examples