How would I go about making a survival style game with waves? I have maps and such so far, what I need to figure out is how to set up the waves. This is how I would like to do it.
Let's say round 1 there are 8 bats, and in order to progress to round 2 you have to kill all 8 bats. I have tried setting it so that when each enemy is destroyed a switch is turned on. When all the switches turn on, the player progresses to round 2. Then it transfers the player to a different copy of the map, thus beginning round 2. However, this seems inefficient.
Also, there are treasure chests with items, I would like it so that if the player receives the item from the treasure chest, for example in wave 3, the treasure chest is inaccessible in later waves.
It might be easier to change your switches to variables -- ie, instead of eight switches for eight bats, have one variable and, every time you kill a bat, add +1 to that variable. Then set a conditional branch that transfers you elsewhere or makes new enemies appear once the 'bats killed' variable is greater than or equal to eight.
in the quick event creation option, you can create a treasure chest that by default will only be used once, since after you open it, a self-switch is turned on.
Hope that helps! 🙂
So if I did this with variables. I had them transfer after they killed the first 8 bats but I wanted to have more enemies the second wave; lets say i wanted 8 enemies wave 1, 12 enemies wave 2, so on and so forth; would I need to keep changing the conditional branch so that it reflects the amount of enemies there are?
Good news that the treasure chest does it by itself.
You don't even need to transfer to a new map (unless you want it to look different for each level, of course). Stick with variables to count how many enemies you've defeated, and use another variable for the rounds. So if it's round 1, set the variable to 1, if it's round 2, set it to 2. Then use conditional branches to check which value this variable is, so that you know which round it currently is, and based on that, you can add the conditional branches for how many enemies the player needs to kill.
Celianna that sounds more efficient. However I am only really experienced with conditional branches. Variables are still somewhat new to me, is there a good tutorial somewhere to could probably help me with this?
*edit I am also using falcao's pearl active battle system, so all the enemies are events, how would I go about spawning the new enemy events?
What if I had a script that reduces lag? I know Victor Sant made one.
That only works for events that are out of sight, considering you definitely want them in your sight, and moving about, that won't help at all.
I suggest to go test it yourself. Create 30 events on one map, and make them all move. See how much FPS it drops (hit F2 during gameplay), and if it's still alright, up the dose of events.