Event spawns from the edge of the screen?

I want to create an enemy that's able to pop out of the edge of the screen and start chasing you around the map. Is there a way to do that with Galv's Event Spawner or a similar plugin?
Why do you need a plugin? Why not just have an event with no sprite, and when you want it to pop out, move it to the correct place and give it a sprite?
Why do you need a plugin? Why not just have an event with no sprite, and when you want it to pop out, move it to the correct place and give it a sprite?
Well, he's gonna be able to spawn multiple times in succession and at random intervals, disappearing for a while when you hide from him for long enough or defeat him.
That sounds like stuff you can just do with event commands, have one page of the event (or a separate common event) running as a parallel process for a timer.
Unless you have more than one of it on the screen at a time, I don't know why you'd need an event spawning plugin.
But how do I set the location? It has to be relative to the player and also not inside a wall.
1. Set two variables to the players x and y location.
2. Manipulate them so the are relative to the player where you want your event to spawn.
3. Check whether this spot is inside a wall via conditional branch.
4. If it is, manipulate them further until they point to the desired location.
5. Transfer the event to a location designated by these two variables.

No plugin necessary. All done with math and event commands.

Original thread: https://forums.rpgmakerweb.com/threads/event-spawns-from-the-edge-of-the-screen.143097/