Get drones to navigate around each other [Solved]

0 favourites
  • 6 posts
From the Asset Store
Like tourists, Travel around the world as fast as you can!
  • There are drones in my game which fly around carry out various tasks, but I'm having problems with them colliding with each other. So I set up an event should make them move away from each other if they get within a certain distance.

    It seems to work as expected with only two drones, but when I start adding more I run into a very strange problem. Some drones move away from each other but some don't, and I have no idea why.

    http://i1266.photobucket.com/albums/jj5 ... v2uzqq.png

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Nothing collides unless you explain to the game that you want it to collide.

    Maybe you have given them certain behavior or made events for them to collide.

    A simple solution is to disable their collisions then they will not collide with anything.

    Otherwise you don't have to have things solid to collide. You can easily have them not solid and just for the player or enemies create an event of collision with them.

    Basically you have some configuration logic error.

  • Hi,

    Nothing collides unless you explain to the game that you want it to collide.

    Maybe you have given them certain behavior or made events for them to collide.

    A simple solution is to disable their collisions then they will not collide with anything.

    Otherwise you don't have to have things solid to collide. You can easily have them not solid and just for the player or enemies create an event of collision with them.

    Basically you have some configuration logic error.

    Oh they're colliding with each other just fine, that's the problem. I'm trying to get them to navigate around each other, instead of colliding/overlapping. This is a navigation problem, did you look at the events?

  • if you use path follower behavior you can set it to avoid certain obstacles

  • So I eventually figured out the issue was that I needed a "For Each Sensor" on the event that sets the sensor's instance variabel Drone_UID. The system show above works just fine now.

  • So I eventually figured out the issue was that I needed a "For Each Sensor" on the event that sets the sensor's instance variabel Drone_UID. The system show above works just fine now.

    Glad you worked it out, good job and good luck!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)