じ☆ve冰风 发表于 2026-7-12 10:53:05

How to make a chasing monster (Like Ao Oni)

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


[*]Enemy Chase
[*]Enemy Appear
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


http://oi59.tinypic.com/1432uer.jpg


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


http://oi60.tinypic.com/9763ar.jpg


What the common event "Player X and Y" does is later in this post.

What "Wait 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:


[*]Player X and Y
[*]Enemy
First you will need to make the Player X and Y common event what looks like this


http://oi57.tinypic.com/a9mhr8.jpg


Make sure the trigger is "None"!

Now you need to make the Enemy common event what looks like this


http://oi61.tinypic.com/2rm5kc2.jpg


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.


http://oi59.tinypic.com/wmb7g8.jpg


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!












本贴来自国际rpgmaker官方论坛作者:DestrikGamer处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/how-to-make-a-chasing-monster-like-ao-oni.31877/
页: [1]
查看完整版本: How to make a chasing monster (Like Ao Oni)