thenerd12's Recent Forum Activity

  • You can store the occupied destinations in a array (by storing the destination instance ID or an actual XY position) then when you want to send an enemy to a destination, you loop through the destination instances and check for each if that destination is already in the array or not. If it is, skip it, else, add it to the array and send the enemy there. This should work until each destination has been assigned an enemy, then it's to you to see what you want to do from here

    Hi, I have never used arrays. I'am gonna try to understand how to use them following your solution. Thank you

  • Guys I got another question, this a bit more complex

    If Enemy1 choose a random Destination but that destination is already "occupied" by other enemies I'd like the Enemy1 to choose another Destination.

    How can I tell to Enemy1 that the destination has randomly chosen is occupied by another enemy?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It worked, thank you!!! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • How to "Find path to" random instance of an object?

    well I cannot hotlink images... so hope someone understand what I mean

    I got an enemy with the Pathfining behavior, I want him to be able to move towards different instances of the same object...

    hope someone can help me...

    On the event sheet it looks like this:

    System every 2.0 seconds ---> Enemy Find path to (Destination.X, Destination.Y)

    On the layout I have many instances of "Destination" so I'd like that every 2 seconds the Enemy find path to a different instance of Destination.

    I know am total noob, please help me

thenerd12's avatar

thenerd12

Member since 6 Nov, 2013

None one is following thenerd12 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies