Make an enemy respawn on the same map after defeating it
I was trying to make an enemy respawn on the map after it had been defeated, I tried a lot of things with switches and searching the web.Finally I got what i wanted with just the event of the enemy.
I added an image with the event of the enemy.
This is what I did:
After the enemy was defeated I made sure the player could not see or touch the enemy for a short while by making the player go through the enemy and making the enemy transparent, then i changed the walking route of the enemy, making sure that it avoids the player for a more random spot to respawn, when the enemy was away from the player it had to wait for 60 frames and come back to the map, changing the transparency back and making the player able to touch the enemy again.
This way the enemy respawns after being defeated in a different place than it used to be.
I hope this helps!
本贴来自国际rpgmaker官方论坛作者:NjoyStick处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/make-an-enemy-respawn-on-the-same-map-after-defeating-it.68386/
页:
[1]