Please open your (Main_Events) Event Editor and add this code and Global Variables:
Global Variables
At Start of Layout
Move Enemy Every Tick
Is Touching Player if player is alive Rotate in touch Directions
player is alive
Playerfire_Rate
Playerfire_Rate (Player fires the projectile towards Enemy)
Projectile overlapping Enemy
spawn enemy randomly
Enemy on Destroy
Enemy Overlapping Player
isAlive (Player if not)
Make your choice home or play again?
choice