BenBlazing's Forum Posts

  • oh thank you. Got it working now

  • I have tried it, but I can still spam the button to deplete my character's health. Did I do something wrong?

  • So in my previous post, I asked for help with setting up RNG Odds that have diminishing returns on each press and have the button locked once the number hits 0. This works perfectly and I now have it assigned to a health system and an animation plays on a character whenever the button is played. However, I find the system exploitable and easily spamable. Is there a way of having the button temporarily disabled while the animation is playing and then, once finished, you can then click on the button again?

    For reference, this is what my event sheet looks like:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh my god thank you so much!

  • I have 5 buttons that use the same sprite and they have UID Instance Variable as seen in this screenshot and previous ones. When the number the Odds number hits 0 for one of the buttons, it stays 0 for the rest. How do I make it so that each of the buttons are unique where I can click on each of them Ten times and each of them goes from 100 to 0.

  • Okay. Got it working thank you. I was very confused as I have never used a Browser object before so I was very confused on what the first guy was trying to tell me.

  • Is this correct?

  • Okay I got that working, but how do I then get it so that odds get smaller on each click until it basically hits 0 and then does nothing when you press the button? Also is there a way to change the rolls into whole numbers instead of decimals?

  • Again, the results always come out as 0 or 1 when the variable is set to Random(100)<50. So it doesn't make a difference. Also how can you set something as true or false when the variable isn't a Boolean?

  • When writing random(100)<50 the odds come out as either 0 or 1 and not between 0 or 100. Not having the <50 seems to be working out although the numbers come out as decimals. So I don't know if they're subtracting from the variable or not.

  • I gave it a go and I couldn't really understand it

  • ah thank you

  • is that a global or instance variable?

  • Hello again.

    I know how to create RNG on a button, however I do not know how to make increasingly worse odds the more that you click on a button. Ideally I would like to program a button that has a hard cap of being only able to be clicked 3 times and that button becomes locked. Each time the player clicks on the button, the button picks a number from a sequence and depending on the number, the player gets a good or bad result. The odds get increasingly worse the more the player clicks on the button.

    How do I do this?

  • I'll have a look at that