[RMMV] How can I make a npc move an event?

Kato-A

Artist and developer
Veteran
Joined
Feb 9, 2017
Messages
109
Reaction score
140
First Language
Spanish
Primarily Uses
RMMV
Hello, I have a question
There is a place in my game where I want create an npc playing with a ball randomly.
How can I make the ball move when the npc is near? and make the npc move towards the event


I know how to make the ball move with the player only.
(Just look how sad is he :,c)

upload_2018-3-14_23-19-20.png
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,127
Reaction score
14,643
First Language
English
Primarily Uses
RMMV
Events can't trigger other events. You have to have one controlling event that moves both of them.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,305
Reaction score
11,734
First Language
English
Primarily Uses
RMVXA
Here is an example of doing just that - it is a dog pushing a ball. This is an extract from the event which controls both.
upload_2018-3-15_7-20-29.png

Two things worth noting. The ball movement has no 'Wait' command, that is because you want these two movements to be happening at the same time.
The other is the last command in the move route above where the ball starts. That is where I get the dog to move half a tile so that it looks like it is touching, and therefore pushing, the ball. You would have to check what the JS equivalent script call is. It probably isn't moveto.
 

OmnislashXX

Veteran
Veteran
Joined
Mar 30, 2012
Messages
599
Reaction score
3,686
First Language
English
Primarily Uses
RMMV
Randomly? Could be hard without scripting. You would probably need a condition variable. If It's a set pattern, then it would be pretty easy. Use the Move Event command and then select which event to move. You can uncheck" wait for completion" to have two events move at the same time.
 

Kato-A

Artist and developer
Veteran
Joined
Feb 9, 2017
Messages
109
Reaction score
140
First Language
Spanish
Primarily Uses
RMMV
I found this plugin, is more or less what I want
Thanks anybody
 

Latest Threads

Latest Profile Posts

Still early in development but feel like I'm hitting a wall. Either I can't find plugins to do what I need, or they're paywalled :/
Screenshot-2021-05-02-at-15-07-54.png


Tivadar will help you travel to distant places in Eniko: Ghosts Of Grace

Finally done with the school project, here's the raw video of it. o_O :smile:

Forum statistics

Threads
111,176
Messages
1,058,990
Members
144,423
Latest member
rafaelydubay
Top