Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
gdevelop5:behaviors:destroyoutside [2018/10/10 23:58]
valiant_curiosity [Destroy when outside of screen]
gdevelop5:behaviors:destroyoutside [2018/10/13 04:03]
valiant_curiosity [Examples]
Line 1: Line 1:
 # Destroy outside screen behavior # Destroy outside screen behavior
 +
 +**[[#​Examples|I would rather see the Destroy outside screen behavior examples! Please take me there now.]]
 +**
  
 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 game scene/​screen,​ this instance will be destroyed. 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 game scene/​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. 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 ==== ==== Add behavior to object ====
  
Line 25: Line 27:
 **Outside the Screen Behavior** **Outside the Screen Behavior**
  
-{{:​gdevelop5:​behaviors:​outsidescreenbehaviorspaceshooter.png?​400|}}+[[https://​editor.gdevelop-app.com/?​project=example://​space-shooter|{{:​gdevelop5:​behaviors:​outsidescreenbehaviorspaceshooter.png?​400|}}]]
  
 * https://​editor.gdevelop-app.com/?​project=example://​space-shooter * https://​editor.gdevelop-app.com/?​project=example://​space-shooter
Line 31: Line 33:
 **Destroy Bullets Outside Screen/​Scene** **Destroy Bullets Outside Screen/​Scene**
  
-{{:​gdevelop5:​behaviors:​outsidescreendestroybullets.png?​400|}}+[[https://​editor.gdevelop-app.com/?​project=example://​shoot-bullets|{{:​gdevelop5:​behaviors:​outsidescreendestroybullets.png?​400|}}]]
  
 * https://​editor.gdevelop-app.com/?​project=example://​shoot-bullets * https://​editor.gdevelop-app.com/?​project=example://​shoot-bullets
  
 +**Shooting Bullets Explanation**
 +
 +[[https://​editor.gdevelop-app.com/?​project=example://​shooting-bullets-explanation|{{:​gdevelop5:​behaviors:​bulletshootingexplanationexample.png?​400|}}]]
  
 * https://​editor.gdevelop-app.com/?​project=example://​shooting-bullets-explanation * https://​editor.gdevelop-app.com/?​project=example://​shooting-bullets-explanation
- 
- 
-