Hi guys! I want to make smt like a wavespawner, but this should create not only enemies, but for example rotating platforms that can kill you. If the player is not dead, it must proceed to the next stage with a new challenge. I hope I was able to roughly describe what I want to do, I don’t even know how to approach this problem and what question to ask on Google. Any sources and tips are welcome
Generally you check each frame if it is time to make a new thing, then make it.
Look for tutorials on game managers or level managers, or perhaps wave managers.
This is a very broad question, and i’m not entirely sure where your problem lies. I would recommend you to look up how other people implemented their wave spawners. You seem to want exactly that, with minor adjustments. Roughly, a wave spawner that spawns some enemies would take an enemy prefab as input, have some timer, maybe a spawn pattern, and then instantiate those enemy prefabs according to the timer and pattern.
What you want is exactly that, just with two different prefabs (one for enemies, one for platforms). If there are different platform and enemy types you can make it lists instead. Then simply spawn a random one from that list… or add more mechanics to it, such that you control what spawns when.