Jump to content

Multiple Paths?


Recommended Posts

Posted
Position[] pathToBank = new Position[]{new Position(pos1), new Position(po2)};
Position[] pathToMining = new Position[]{new Position(pos3), new Position(po4)};

Paying the fare isn't handled as a path, that's an obstacle you must overcome, one way you could do it (very bad practice but works):

Area payFare = new Area(COORDS_OF_FARE_AREA);
if(payFare.contains(myPlayer())){
   payFare();
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...