Make an enemy respawn on the same map after defeating it

NjoyStick

Villager
Member
Joined
Sep 8, 2016
Messages
9
Reaction score
2
First Language
Dutch
Primarily Uses
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!


Respawn.png
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Hello, next time please proofread your tutorials especially for I and spelling mistakes :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top