Hello
I', using a function to spawn enemies. In this function there is a loop which spawn 8 enemy instances.
I need a way to randomly destroy some of them by my own given number amount (3 of them for example).
The problem is when I use destroy loop after my spawn loop it doesn't work at all, but when I use it on a every 2 second condition it works perfectly.
I think i still can't understand how exactly events, sub-events, and functions work cause I'm struggling with them for hours :( .