#How can i make a working wave system in an rpg game 3x?
1 messages · Page 1 of 1 (latest)
When an enemy spawns make a global variable (EnemyCount) and make it add (1), When the player kills an enemy, make it lose (1), if you dont want the player to win early you could make some script for cooldown
And how about its wave part? When all enemies are killed, the next wave starts
Make another script in the map:
Wait (x) seconds then
If (EnemyCount) = 0 then
Switch Map / Set: Wave ( + 1)
The wait script is so that game doesnt end before enemy even starts spawning
Switch map is for new wave orrr just make another global variable named Wave
Everytime the enemycount drops to 0 the wave increases by 1
And then loop the script
And how do i make the next enemies spawn in the next wave? (They also spawn in a monster gate)
I think you shouldnt use monster gate
U could make ur own monster gate with script
Example:
If: Wave = 1 Then
Loop until Wave = 2
Generate (Monster) 1
wait (x) seconds
Generate (Big Monster) 1
Close loop here
Btw dont put the 7.5 seconds inside the infinite loop
That would make a cooldown for the win
Instead put the 7.5 outside and loop that script until enemy amount is 0
Like this? Tell me when theres something wrong