Hello, I'm making a game in RPG MAKER XP and I need to create an enemy like Ao Oni, please help because there is no video on this topic on YouTube.
How create enemy chase between maps in Rpg Maker Xp
RPG Maker XP SupportWhat is Ao Oni?
Nope. Me either. It’s best practice to provide details and explanations when referring to a game title you wish to emulate a mechanic from.
I want to create an NPC who walks around the map and follows the player, but when the player moves to another map, the NPC also moves to another map. How can I do this?
Whoops, just realized this was in the wrong section. I have moved this thread from RPG Maker XP Tutorials to RPG Maker XP Support.
a very, very, old horror rpg maker xp game that was about a bunch of kids going to a haunted mansion and then they end up being chased by the purple creature.
it was very innovative at the time, it does some trickery that back then not many people would think of
one example near the end is spawning a creature when you'd open the menu to get an item and one of your companions were a creature and start chasing as soon as you close the menu, pretty neat imo
Depending on how complex you wanted it to be, you'd have to make multiple events, one for each map.
And those events could call a single common event as to reduce the work needed to implement it to a bare minimum.
Guys above,you've been using rpg maker for years, and don't know Ao Oni? Like what t..
Kinda old, it also kinda fell off with the sequels
What do those things have to do with each other?
People are on these forums because they're making games with RPG Maker, not because they are consumers who specifically look for and play games made with it.
I've played a little bit of one game that was made with RPG Maker (not counting helping friends playtest or game jam entries).
Oh, so you used godot before? Name every game made with it. What a weird thing to expect people to just know all the obscure little weird horror games that get churned out on this engine, especially when making games has nothing to do with playing games made in the engine.
Woah you wrote a book on paper and have never read The Hobbit? Like what th..
I apologize guys, I was kidding
I didn't expect your feedbacks would be like that.
I didn't expect your feedbacks would be like that.
Haha all good chum. Just ribbing you. Bustin' chops!
Guys, does anyone have the examples that I described above?
Scripts, events something like that?
I don't know purple man game, but I guess you can just have a parallel event with a wait command, turn on a switch/Self Switch after a second or two. Second event page has purple man graphics that it set to follow player?
I mean, it depends on how fancy you want to get.
I think just having a default wait timer is fine enough. You could theoretically calculate the distance the bad guy is from the player, determine how long it takes to travel that distance, and then create a variable based timer based on the distance.
Considering I am not familiar with XP, I don't know if these event commands are available, but surely they are
Many commands have stayed the same over each iteration.
It does sound like you are pretty new to the engine, and although I think the game you are referring to is pretty simple, it's still more complex than what a beginner should do.
I recommend spending some time making a pretty basic game just to get familiar with the engine.
Just spend 1 month or so making a game that is like...1 hour long or less. Just 2 or 3 rooms, nothing too fancy. Extra small scope, you know?
The thing in question you want to do can be done with eventing if you know what you are doing.
I think just having a default wait timer is fine enough. You could theoretically calculate the distance the bad guy is from the player, determine how long it takes to travel that distance, and then create a variable based timer based on the distance.
Considering I am not familiar with XP, I don't know if these event commands are available, but surely they are
Many commands have stayed the same over each iteration.Basically, create an X and a Y variable for the player and an X and a Y variable for the "monster".
subtract the monster's X value from the player's X value to get the difference and assign it to a "distance" variable.
You may need to create a conditional, if the distance variable is less than 0, multiply it by negative 1 to flip negative values positively.
Then do the same for the Y value.
Add the X and Y distance together
This is the total distance. It's hard to account for obstacles, or if the monster needs to travel around a large U shaped hallway, or even diagonals. This could be properly refined to be more realistic, but I'd probably keep it simple, we're just pretending like the monster has walked that distance since there is no real way of making the same event from one map transfer to another.
Then we just need to know how fast the monster moves from 1 tile to the next. It's likely different in XP, but I think the "normal" speed in MV is 8 frames.
So, we multiply our total distance by 8 (or whatever our speed value is), and voila! The time it takes for the monster to "travel" from one room to the next.
From there, have a parallel common event running. Whenever you transfer a map, make sure to turn on a switch (and calculate the distance)
In the parallel event have a conditional checking if the switch is on. If it is on: start the timer (I'll come back to this)
Else
wait 4 or 5 frames (just to optimize things)
The timer would be a variable based timer.
Create a loop.
Check if the distance variable we created before is equal to or less than 0
if so:
Use a move event command to place the "monster event" at the door (p.s. you probably need a system to detect what door the player entered from. Maybe on the same transfer event that calculates the distance from the monster, also set the X & Y values of where the player "enters" in the next room)
break loop, turn off the switch.
else:
subtract 1 from the distance variable,
wait 1 frame.
subtract the monster's X value from the player's X value to get the difference and assign it to a "distance" variable.
You may need to create a conditional, if the distance variable is less than 0, multiply it by negative 1 to flip negative values positively.
Then do the same for the Y value.
Add the X and Y distance together
This is the total distance. It's hard to account for obstacles, or if the monster needs to travel around a large U shaped hallway, or even diagonals. This could be properly refined to be more realistic, but I'd probably keep it simple, we're just pretending like the monster has walked that distance since there is no real way of making the same event from one map transfer to another.
Then we just need to know how fast the monster moves from 1 tile to the next. It's likely different in XP, but I think the "normal" speed in MV is 8 frames.
So, we multiply our total distance by 8 (or whatever our speed value is), and voila! The time it takes for the monster to "travel" from one room to the next.
From there, have a parallel common event running. Whenever you transfer a map, make sure to turn on a switch (and calculate the distance)
In the parallel event have a conditional checking if the switch is on. If it is on: start the timer (I'll come back to this)
Else
wait 4 or 5 frames (just to optimize things)
The timer would be a variable based timer.
Create a loop.
Check if the distance variable we created before is equal to or less than 0
if so:
Use a move event command to place the "monster event" at the door (p.s. you probably need a system to detect what door the player entered from. Maybe on the same transfer event that calculates the distance from the monster, also set the X & Y values of where the player "enters" in the next room)
break loop, turn off the switch.
else:
subtract 1 from the distance variable,
wait 1 frame.
It does sound like you are pretty new to the engine, and although I think the game you are referring to is pretty simple, it's still more complex than what a beginner should do.
I recommend spending some time making a pretty basic game just to get familiar with the engine.
Just spend 1 month or so making a game that is like...1 hour long or less. Just 2 or 3 rooms, nothing too fancy. Extra small scope, you know?
The thing in question you want to do can be done with eventing if you know what you are doing.
Original thread: https://forums.rpgmakerweb.com/threads/how-create-enemy-chase-between-maps-in-rpg-maker-xp.164678/