Getting Character to Follow Non-Player Character

TheTraveller

Warper
Member
Joined
Feb 12, 2019
Messages
4
Reaction score
3
First Language
English
Primarily Uses
RMVXA
So, I would like to preface this by saying that, outside of very basic events like chests or the like, I have almost no knowledge of RPG Maker, not helped by my first project being down in a trial version of MV, so moving to XV Ace doesn't help.

Anyway, I'm developing a small test game called "Jailbreak", where the player...well. Basically I want it to open with a sort of cutscene, as shown below;

Basically, what I want to happen is for a guard to appear on the event square at the top, move to the cell door and continue from there. That I how to do, except that I can't get them to stop afterwards. What I DON'T know is getting another sprite (since NPC's don't really exist in RPG Maker, to my understanding) to follow that event sprite, open one of the cell bars masquerading as a door, walk into the cell and then close the door behind them. Then of course the guard walks off, they talk and then the jail cell door opens and then gameplay starts.

In other words, I want a character to follow another character that is an event, not the player. I...don't know how to do this. I considered switching the event to the player and move them to the cell, then of course switch the player back into the position in the image after a fade-to-black and back. But I don't know if that would even work. Help would be appreciated, as a fellow friend and RPG Maker user also has issues with this. Thank you.
 

Sakurra

Is probably eating a brownie
Veteran
Joined
Sep 1, 2015
Messages
562
Reaction score
743
First Language
English
Primarily Uses
RMMV
So you want two events to move but not the player?

I would make a new event on the page and set it to "auto run"

From there I would use this script to move the two npcs exactly where you want them

◆Set Movement Route:NPC1 (Repeat, Wait)
: :◇Script:this.moveStraight(this.findDirectionTo(x, x));
: :◇Script:if (this.pos(x, x)) { this._moveRoute.repeat = false; };


◆Set Movement Route:NPC2 (Repeat, Wait)
: :◇Script:this.moveStraight(this.findDirectionTo(x, x));
: :◇Script:if (this.pos(x, x)) { this._moveRoute.repeat = false; };

Use the set movement route on page 2. Am I understanding you right?

Edit: Also, I really like your avatar. ^_^

Edit2: Whoops. I posted this for MV. Sorry. ^^; I'm not sure about VX Ace.

Edit3: If you wait for a sale for MV on Steam, you can buy it for like $20 instead of $70.
 

pickledylans

lov the cronch
Veteran
Joined
Feb 8, 2019
Messages
129
Reaction score
170
First Language
English
Primarily Uses
RMMV
Like the person said above, use movement events
movements events can move ANY event on the map
so lets say you have person one and person two

you can make an event by itself, or use their event page to do the following;
hit "set movement route" on the second page, on the top right corner of the new window, there should be a drop down. you can pick ANY event on the map from there

naming events is helpful for this situation

what you do exactly from there depends on how you want it to be animated, feel free to experiment! learning rpg maker is a lot of trial and error and seeing what works and looks good to you
 

TheTraveller

Warper
Member
Joined
Feb 12, 2019
Messages
4
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Like the person said above, use movement events
movements events can move ANY event on the map
so lets say you have person one and person two

you can make an event by itself, or use their event page to do the following;
hit "set movement route" on the second page, on the top right corner of the new window, there should be a drop down. you can pick ANY event on the map from there

naming events is helpful for this situation

what you do exactly from there depends on how you want it to be animated, feel free to experiment! learning rpg maker is a lot of trial and error and seeing what works and looks good to you
Okay, that got it to work, thank you. :D Uh, one issue remains, however. How do you get them to stop, afterwards? As for now, they keep moving on the set path and I can't find a Stop command. Or do I use the Wait command instead?
 

pickledylans

lov the cronch
Veteran
Joined
Feb 8, 2019
Messages
129
Reaction score
170
First Language
English
Primarily Uses
RMMV
Can you send me a screenshot?
 

pickledylans

lov the cronch
Veteran
Joined
Feb 8, 2019
Messages
129
Reaction score
170
First Language
English
Primarily Uses
RMMV
Okay, that got it to work, thank you. :D Uh, one issue remains, however. How do you get them to stop, afterwards? As for now, they keep moving on the set path and I can't find a Stop command. Or do I use the Wait command instead?
You probably have "repeat movement route" checked, so make sure it's not! If that doesn't fix it let me know
 

TheTraveller

Warper
Member
Joined
Feb 12, 2019
Messages
4
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Okay, I had found a way around it, so that's all fine. One last thing, however. Is there a way to just render the player invisible in a scene? Because I want to have a sort of establishing shot of the prison, but it won't run without the player on the field somewhere.
 

TheTraveller

Warper
Member
Joined
Feb 12, 2019
Messages
4
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Wait, wait, ignore that last one, found the option in the Database menu.
 

easterngreen

Warper
Member
Joined
Nov 26, 2018
Messages
4
Reaction score
1
First Language
English
Primarily Uses
RMVXA
Do you want to start the game with the player being invisible? If so, go to Database--> System--> and check "Transparent On".
Otherwise, simply go to the second page of your event commands and click on "Change Transparency" when you want your player to be invisible. (If that doesn't work, on page 3 click on "change actor graphic" and set it to "none")
Hope this helps.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,016,998
Members
137,562
Latest member
tamedeathman
Top