theBobcatte's Forum Posts

  • Or when timer ends, set a bool to “canInputA” and start another short timer that will turn the bool to false. If buttons are pressed AND the bool is true, then do your action

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • hmm that doesn't seem to be working

    this is my current hierarchy, i am trying to find the closest "object" (purple square) to the green object "finder" with canBeGrabbed = true

    The purple square with the arrow has canBeGrabbed set to false, and when I run it nothing happens

  • can you post more details? maybe an image or something? hard to tell exactly what you are describing.

  • I am making an RTS where I have indirect control over my humans and am having problems finding the nearest available resource as opposed to just the nearest available.

    Basically, if a human decides they want to chop a tree I mark it as claimed. Then if another human is looking for a tree to chop, they should find the closest tree that is not claimed. I think my problem is syntax, I am currently trying to add all the unclaimed to an array then sort by nearest but just can't seem to crack it.

    Thanks in advance for any advice, this has been driving me nuts for two days.

    Tagged: