Hi everyone, english isn't my native language, so sorry if there's any mistake.
I want event A to chase event B. I managed to do that using HIME Mouve Route Commands script: this.moveTowardsEvent(ID) in the event A custom route.
Event B should only be activated once event A reached it, but event B has a random autonomous movement and I don't know how to proceed.
Thought about using variables to identify event A X and Y coordinates, the same with event B, and then substracting the variables. Then a conditional branch should make the event B trigger only if the result of any substraction is 1 or -1. Here is an example:
X ( Event A ) - X ( Event B ) = 0
Y ( Event A ) - Y ( Event B ) = -1
If I guessed well, that would mean that event A is right above to event B, and that would trigger it.
I don't know if that's ok, I'll try it today. Anyway, if anyone knows a better or simpler way of doing it, i'd love to hear it.
Take care everyone!
/Óscar.
I want event A to chase event B. I managed to do that using HIME Mouve Route Commands script: this.moveTowardsEvent(ID) in the event A custom route.
Event B should only be activated once event A reached it, but event B has a random autonomous movement and I don't know how to proceed.
Thought about using variables to identify event A X and Y coordinates, the same with event B, and then substracting the variables. Then a conditional branch should make the event B trigger only if the result of any substraction is 1 or -1. Here is an example:
X ( Event A ) - X ( Event B ) = 0
Y ( Event A ) - Y ( Event B ) = -1
If I guessed well, that would mean that event A is right above to event B, and that would trigger it.
I don't know if that's ok, I'll try it today. Anyway, if anyone knows a better or simpler way of doing it, i'd love to hear it.
Take care everyone!
/Óscar.