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...
Posted from my blog with SteemPress : http://magicmonktutorials.com/blog/2019/10/22/construct-2-lesson-8-instance-variable-for-enemies-random-function/

Mathematics & Digital Technologies Education
Videos, quizzes, and other learning resources
Eddie the Magic Monk has 14 years teaching experience as a high school teacher in Australia. He will explain things to you in the simplest way possible to help you fully understand high school mathematics and computer science concepts.
Eddie began his tutorial channel on Youtube in 2012. His videos have been well received all over the world and now has 19+ million views! He sees the benefit in multidisciplinary learning hence his tutorials cover topics ranging from maths to dance.
Hi @magicmonk!
Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.711 which ranks you at #1629 across all Steem accounts.
Your rank has not changed in the last three days.
In our last Algorithmic Curation Round, consisting of 97 contributions, your post is ranked at #17.
Evaluation of your UA score:
Feel free to join our @steem-ua Discord server