Pathfinding Troubleshooting Destinations

0 favourites
  • 1 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Hi all, I'm working on a management game in which little minions known as objWorkers go around performing tasks at different buildings based on an instance variable WorkerJob.

    I've managed to get them to move around, however, several issues are cropping up.

    First issue, when an objWorker reaches their designated objDestination, instead of stopping, they proceed to bump up against the objDestination over and over again, and never truly reach it. I have no idea why this is the case.

    Second issue, several types of workers such as "Farmers" do not pathfind to their objDestination (objDestFarm), and instead try to relocate to objDestStorage (not where they're supposed to go) and the workers who are supposed to go to objDestStorage "Campers" instead try to locate to 0,0.

    Attached are screenshots of the code. If you guys want sample code, I'll whip one up, but for now I'm hoping this is easily solvable.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)