Event Jump when hits edge?

● ARCHIVED · READ-ONLY
Started by wrigty12 3 posts View original ↗
  1. I have a map where there will be cars driving on a highway, that will not be interacting with the player at all. They are simply for visual appeal.

    However, I haven't found an appropriate way to "loop" them when they hit a map edge.

    Is there a way to have an event jump from one edge to the other, looping the same path over and over again? I've tried searching for a script call of sorts, but nothing.
  2. How is the car moving? If it's a custom autonomous movement set-up, then you can add this using the script option of the move route as the last movement

    self.moveto(x,y)
    where you will change x,y to be the x,y coordinate where the cars would be starting again

    so like if they go from 0,0 to 10,0, change the x,y to 0,0
  3. Alright, that works. I'm just surprised there isnt a simple script out there to detect if an event moves into an edge and seamlessly moves it back to the other edge.