Oh yeah that seems pretty good, but being a parallel process would probably make it laggy, wouldn't it? There will probably be around 3-4 vehicles roaming around which is why I went with the move route way, also if I make it parallel process I can't think of a way to make the event "kill" the player when it touches him, forgot about that too.
You could just have the move route of the vehicle go until it reaches the desired x and/or y. Set the priority as 'same as characters' and the trigger 'player touch', where the event page is the desired effect, such as a game over.
And how do I do that exactly? Move forward if X =! 11 and Y =! 20? I mean how do I write that in the script? I'm not good at all at scripting
Yeah I know how to do that, but I want it to repeat move right until it reaches and X/Y (for example) like you did before (think like a conditional branch within the move route with a Script)
You didn't show us your original event or link the script you're using so there may be a lot of important details I'm missing here.
Anyway, try something like this within the event's Autonomous Movement.
Locate Script..., the last item on the last column, insert this into the box, and change/remove the coordinates as needed.
case [x, y] when [1,1] ; move_straight(6) when [14, 1] ; move_straight(2) when [14, 11] ; move_straight(4) when [1, 11] ; move_straight(8) else move_forward end
By default, the event should move in a square so long as you place it correctly.
THANK YOU Rinobi! That was it, works like a charm!! I really appreciate and will for sure credit you when I finish this.
Thanks to both of you.
One last thing though, what do I type in to activate a switch when it reaches a certain X/Y too? when [14,1] ; $game_switches(40) ? Something like that. (Or a self-switch for that matter)
(For example, a car reaches a stop sign and activates a switch, while on this switch you can interact with the car, I have something that accomplishes this task but sometimes events get on the way and it stops before it should)
Thank you so much. This can be closed now.