Hi there!
I'm making a horror game and I noticed alot of people wanted to know how to make a monster that chases you through different maps and I came up with a way that worked for me. I hope you can use my system!
NOTE: If you want a video tutorial click here!
Switches and Variables
The first thing you need to do is make a few switches and variables.
Switches
Variables
- Player X
- Player Y
- Enemy X
- Enemy Y
- Enemy Chase Length
- Enemy Chase Counter
- (Optional) Life
Note: Because my enemy is a robot all my switches are named a little bit differently
Setting up your enemy
So your enemy event will look something like this
If you want the enemy to insta-kill just remove the last 2 lines and replace it with "Game Over"
My custom move route is:
"Move toward player"
"Move toward player"
"Move toward player"
"Move toward player"
"Move toward player"
"Move at random"
"Move toward player"
"Move toward player"
Of course settings such as speed move route and the event itself can be changed just make sure you have "Enemy Appear" as a switch.
Note: You must have the enemy pasted in EVERY MAP for this to work where doesn't matter
Setting up map transferring
For your enemy to transfer maps you must have an event that looks like this
What the common event "Player X and Y" does is later in this post.
What "Wait [Number] Frame(s)" does is for example: When the player enters a new map after 2 seconds (120 frames) the enemy will appear.
Note: The set event location is "Set "Enemy" to Robot X, Robot Y"
Note: You must have this event pasted in EVERY MAP for this to work where doesn't matter
Common Events
You will need 2 common events:
First you will need to make the Player X and Y common event what looks like this
Make sure the trigger is "None"!
Now you need to make the Enemy common event what looks like this
This common event is basically a timer. If the time is up the monster disappears.
Now let's move on to the last event!
Summoning Enemy
Of course you need to summon your enemy! This event is only an example.
The "Enemy Chase Length" is how many seconds you want the enemy to chase you in this case 25.
The "Battle6" BGM is just an example for chase music that's why in the "Enemy Chase" common event there is "Fade out BGM"
Note: The "Enemy Chase Length" and "Enemy Chase = On" are required! The rest is optional!
[/url]
[url=https://forums.rpgmakerweb.com/attachments/common-event-player-x-and-y-png.16409/]
[/url]
[url=https://forums.rpgmakerweb.com/attachments/robot-enemy-png.16411/]
[url=https://forums.rpgmakerweb.com/attachments/summoning-example-png.16412/][/url]
本贴来自国际rpgmaker官方论坛作者:DestrikGamer处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/how-to-make-a-chasing-monster-like-ao-oni.31877/