Making a character disappear forever after it has done its "job"

Hello everyone, first time posting (and new to this) so bare with me.


In my first dungeon I wanted to add a "shadow" (which would later be a mini boss) appear in the top left corner appear.


I managed to just that, the problem is that whenever I leave the cave and enter it again and step on the switch, it does the same thing.


I know why it's happening, I just don't know how to make it "go away" after the event has happened once.


pictures of the events:


cave entrance
http://prntscr.com/bgw6bp
spider
http://prntscr.com/bgw65m
 


Thank you.
you need to use a switch to switch the event with the sprite to a different page that has no graphic.


Additionally, don't use a switch to trigger that movement - set the spider event to fixed autonomouse movement and have the triggering event use set move route targeted on the spider to remote control its movement.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-character-disappear-forever-after-it-has-done-its-job.63619/