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
Get The Attack of the Cylinders
The Attack of the Cylinders
My First Unreal Engine Project.
Status | In development |
Author | Kaydyn Wilson |
More posts
- Kill zones and CheckpointsMay 15, 2025
- Main Menu and WidgetsMay 08, 2025
- Elevator and ColorsApr 10, 2025
Leave a comment
Log in with itch.io to leave a comment.