Hello there,
I am trying to build a vampire survivors clone in unreal engine but I am struggling with the main aspect of the game: shooting a lot of projectiles
I currently have 3 different type of projectiles and each projectile type can level up. With each level one additional projectile will be fired of that type. So if skill 1 is level 6 it would fire 6 projectiles.
But I dont want to fire them all at once but rather with a short delay of 0,1 sec. And that is where the issues come in. I learned already that I am not allowed to have a delay in a for loop. And I also saw the workarounds where you are supposed to build your own for loop macro which includes a delay. Unfortunately this does not work for me. I have the feeling UE is overwhelmed as I want to spawn all actors at once.
Here I am iterating through a data table and trigger each ability listed in it:
Here I am triggering the selected ability:
And here I am spawning the number of projectiles with the loop with delay macro:
Currently the result is only one of the three abilities fires the correct amount of projectiles. All other two abilities are only fired off once. Which seems very strange to me. I hope someone can help me because I have no clue what else to do.