#How can i make a working wave system in an rpg game 3x?

1 messages · Page 1 of 1 (latest)

sinful zinc
#

You ca-n go to 4x and see how its made The wave and inspire

#

Its not big diferent

#

I tinck so..

amber sage
#

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

heady swift
amber sage
#

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

heady swift
#

And how do i make the next enemies spawn in the next wave? (They also spawn in a monster gate)

amber sage
#

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

amber sage
#

That would make a cooldown for the win

#

Instead put the 7.5 outside and loop that script until enemy amount is 0

heady swift
#

Like this? Tell me when theres something wrong

amber sage
#

dont add exit loop

#

just add another wait 1 sec