Construct 2 lesson 8 – Instance variable for enemies, random function

In this tutorial we covered:

– Stop the enemy from killing the player as soon as it’s created (in case it gets created on top of the player)

– Stop the enemy from generating outside the layout

– If the enemy goes outside the layout, destroy it.

Play the game live at http://magicmonktutorials.com/space

Download source file here: http://magicmonktutorials.com/space/t…