Random enemy spawn


My students and I are wondering how to create duplicates of an enemy, and make them spawn randomly. We also want these enemies to move towards the player, and if the enemies touch the player, the player has to restart.

Any help is appreciated!

Hi @Gabriela_Porras,
This project is a bit more complex as it adds health and damage dealt when the enemy is clicked; (And its a bit messy) But the “create enemy function” and the forever loop at the bottom should give you an idea on how to implement it.
Hope this helps!

1 Like