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

Kato-A

Artist and developer
Veteran
Joined
Feb 9, 2017
Messages
108
Reaction score
138
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

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
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,299
Reaction score
11,712
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
108
Reaction score
138
First Language
Spanish
Primarily Uses
RMMV
I found this plugin, is more or less what I want
Thanks anybody
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
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'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,567
Latest member
sashalag
Top