Spawning Enemies


In this new coding and design session, I was taught how to spawn enemies with code in Unreal. There were some minor hiccups, but we made everything run smoothly. 

We built a spawn point and coded enemies to spawn on them.  Then we coded these enemies to disappear upon being touched by the PC. Then we coded it to where after an enemy dies, it checks if it is the last enemy and if so, all the enemies respawn. However, we also made an 80% chance that the enemies would spawn which means there is a 20% chance they won't. 


For some reason, we had to put the > as one because the length was off. I wonder if there is a better solution to that I will learn in the future. 

Link to GitHub ---> https://github.com/Kaydyn-Wils0406/Coding1-Unreal-SP25

Files

SpawningEnemies_SP2025.zip 488 MB
Mar 06, 2025

Get The Attack of the Cylinders

Leave a comment

Log in with itch.io to leave a comment.