Spawners spawning enemies on top of each other
Author: Austin Anderson
Date: 10/26/23
Problems:
The biggest problem I had this week was the enemy spawning. Originally, it would only spawn one at a time, no matter how many times I looped the spawn, only one would spawn. After I fixed this problem, they then started spawning on top of each other as you can see in the first video. The spawners would spawn the enemies so fast that they would run out of room and then start spawning them above the spawner instead of around the spawner. This was clearly something that needed to be fixed. It looked sloppy and I am sure that it would have caused even more problems down the road.
Solution:
The solution to the first problem where the enemies spawned only one at a time was to set the spawners to spawn around themselves instead of just giving up if another object was inside the spawner. The next problem then arose where the enemies would spawn on top of each other. The solution to this problem was to space out when it spawned, as it sits now they wait a quarter second before spawning the next enemy. As you can see in the screenshot, a loop would not work. Perhaps I just do not understand loops in unreal, but when I would try to delay for any amount of time, it would just delay after the loop instead of delaying before the next loop. This made me realise that I would have to create my own loop in unreal. As you can see I created a few integer variables to incriment and then just loop back to a branch that checks if the integers are valid to move onto the next one.
Get Cyber Siege
Cyber Siege
Third-to-First person Castle Defense game
Status | In development |
Author | TheCodeCollective |
Tags | 3D, First-Person, Futuristic, Robots, Singleplayer, Third-Person Shooter, Tower Defense, Unreal Engine |
More posts
- Visual Impact: Enhancing Player FeedbackFeb 03, 2024
- Revamping Reticles: Adding Specific DynamicsFeb 02, 2024
- Spider Enemy Dying in the AirFeb 01, 2024
- Small Changes: Beginning vs End of developmentJan 27, 2024
- Airstrike TimerJan 25, 2024
- Overcoming Code Mazes: Transitioning to Radial Progress Bars in Unreal EngineJan 20, 2024
- Airstrike Power-UpJan 18, 2024
- Resuming the Journey: Maintenance & PlanningJan 13, 2024
- Drone Enemy Particle Effect BugJan 11, 2024
Leave a comment
Log in with itch.io to leave a comment.