Is this possible?

Hi! I want to have my enemy encounters spawning on the map while the player is walking.

Example:

Player walk in on map. 5 seconds later an (event touch) event appears and moving around randomly.

5 secons later another one spawn. 5 sec later the last one spawn. setting a maxium of three active enemy encounters

at the same time.

My explaining isn't the best. So sorry for that.

I want my enemy encounters to pop up like in this game.




It isn't my video. But skip to 2:15 of the video and you hopefully understand what I'm aksing for.
You can make an event that has 2 pages


Page 1:


Blank graphics


Parallel process


Event Commands:


Wait(300 frames) #5 seconds


Change position if you want


Set Self Switch A to ON


Page 2:


Enemy graphics


Event Touch


Condition: Self Switch A is ON


#This is you actual enemy encounter that moves around


#After the fight you might want to set Self Switch A to off again


#If you want it to respawn without going out of the map


#Or Erase event if you want it to respawn only after you go out of the map
Nice! 🙂

Is there anyway I can limit the maximum number of enemies "active"(spawned) which can appears. like 3 at a times a most. ?

Also if possible can they "dissapear" after some time if you don't touch them?
Each event will correspond to 1 enemy... so if you need 3 enemies at most, put three of those events and change the wait time for each so that they don't respawn all at the same time


As for the next question, it is possible... you can have another parallel process event that will deactivate the self switch of the enemy events after some time (via script call)...
Cool! Thanks 😀
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-this-possible.26016/