Gadgetkk's Forum Posts

  • I actually took it out of the on created loop and it does work now. Thanks all for the assistance.

  • Here you go:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok, I made that change and nothing is happening.

  • So that event wouldn't help with my conundrum then?

  • Hi Everyone,

    I'm creating a game where the player selects 2 objects (a gatherer and then a townhall) and then they "linked" by assigning the townhall's UID to a variable in gatherer.

    Gatherer will then spawn a delivery object and pass on the townhall UID to into a variable in delivery.

    This is all happening just fine. I have verified the delivery variable is correctly set to the townhall's UID. However, I can't get the delivery object to then more towards the townhall with that UID.

    I have tried using the "Pick instance with UID" event but it isn't triggering any of it's actions. I've searched the web and I see people having issues with using this event but no solutions I can find.

    Am I doing something wrong or is there an easier way to deal with this?

  • Thanks, that wasn't very specific but it got me where I needed to go.

    Basically, you set a variable on the health bar object to the UID of the main object and then use the formula clamp(MobFam.Mob_Health/MobFam.Mob_MaxHealth*32,0,32) to have it go down.

    The formula was actually the piece I missing.

    If the construct team is reading this, you desperately need to put in a health bar behavior.

    **Edit

    I unfortunately had to do this again because the changes weren't saved for some reason. so I'm posting a screenshot of it in case it helps others.

  • Hi Everyone,

    I'm doing a TD game and I'm having issue with the mob's health bars accurately representing the health of the mob it is attached to. Here is what I have, and any assistance is greatly appreciated.

    Tagged:

  • ok, someone on discord helped me solve it. The solution was to add a line to pick by UID (which I was storing as a global variable from the first click).

  • Ok here is the screenshot.

    So you can see clicking on Build_Spot2 creates 2 objects. Then clicking on UI_Food should create an object on the Build_Spot2 that was first clicked.

  • I think because you click a second object, you can’t have it be in the same event. I’ve tried and it won’t let me do a “click A > do X; click B > creat object B on over object A” but it won’t let me.

  • Hi everyone,

    I’m making a tower defense game and I am struggling with this issue…

    The player clicks and empty land space and gets the option to build 1 of several buildings. That all works fine at the moment. The part I can’t figure out is how to build in that single parcel of land and not all the parcels of land with the same name.

    I have the objects UID that is clicked but k can’t seem to figure out how to build in that UID’s X and Y.

    I’ll post a snippet of what I have in a bit.

  • Has anyone used the Pro UI? It looks like it might accomplish the task. But not sure how easy or hard it is.

  • This is tower defense game screenshot, but shows what I'm wanting to get close to doing in my game...

    The way the options pop out from the selected object.

  • Hi everyone,

    I’m building a RTS like game and need to create an interactive UI. Are there any examples to show how to do this or addons that make this a relatively simple task?

    Everything I have been able to find is all about status UI elements.

    Thanks in advance.

    Tagged:

  • I have and it doesn't seem to have an impact.