I have two events, they are both set as "below character".
Event A that has random movement route
I want event B to move together with event A, exactly the same tiles, same time.
how do I do this ?
any help is appreciated
sync two events random movement route
● ARCHIVED · READ-ONLY
-
-
When you do the move route for the event, you do not tell the first one to wait.
Then on the second move route, you tell it to wait.
Both move routes are together in the same event when you tell either one of them to move. -
@Roninator2 the question isn't about timing, it's about how the second event can detect the random moves of the first.
@manck If two events move the same, the movement is no longer random.
There are several ways to do this, none of them easy - it would be much simpler to use a predetermined move route.
are both events at the same position or does the second one copy the move of the first at a set distance?
if they are at the same position (which your desciption sounds like), why do you need two events? -
I figure two events are needed to display two different sprite animations at the same time... although considering that each sprite animation is regularly only a 1-2-3-2-1etc swipe, you could just combine the graphics in an image program.
But if you absolutely need two events, consider the following:
Upon entering the map, an automatic map-event fires that sets event B on top of event A (make sure that the map-event then self-erases).
After this, event A uses a random moveroute and event B is a parallel process that analyses event A's position and adjusts itself by moving 1 tile in any given direction. Not sure how reliable that would be though. Alternatively one of the events, using a parallel process, pseudo-randomly sets the move-route by constantly picking 1 of the 4 directions and then two move-routes (one for A and one for B) fire at the same time - note that each "pair" must have both of them WITHOUT wait, and you should set a small wait time at the end of the eventing list to control their frequency.