theBobcatte's Recent Forum Activity

    • This is kind of a strange one, but hang with me. It's a 3D question
    • I have a building that I want to have fall when it's created
    • When it spawns, it spawns in at 200z
    • I then call a recursive function that goes until Z elevation reaches 0

    if buildingZ>0 then

    self.Zelevation = self.Zelevation-10

    • But it's crazy, when it spawns in and I use a function it just floats in the air and the function never happens.
    • If I check every frame to see if Z>0 then the building will "fall" but once it reaches it's destination I don't want the Every Tick event to k

    eep caring about it. I just want to run the function, get out, and be done.

    Has anyone found anything similar? Thanks!

  • wow, it was so simple! I guess I wasn't thinking about using the bool test going through all objects, I'm super used to looking for specific instances. This simple structure works, thanks crew!

  • 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:

theBobcatte's avatar

theBobcatte

Member since 31 Oct, 2016

None one is following theBobcatte yet!

Trophy Case

  • 8-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies