How I do the sell button...

0 favourites
  • 6 posts
From the Asset Store
J-BoB Game Button Sound Pack comes with 300 high-quality sound effects
  • Hello everybody...

    I got my grossery store, and now I have a problem:

    When I click in the Wathermellon, my stock decrease, my money decrease, but

    when my GlobalVariable = 0, I can buy wathermellon Yet...and my money spends...

    I want to know how I do to cancel a click in my icone (is not a button)

    and stop the decrease in my money and encrease in my bag.

    ""Cancel clicks in icon""

    thanks. <img src="smileys/smiley11.gif" border="0" align="middle" />

  • Oh boy, you don't want to cancel the click you just don't want to trigger it.

    Just add a condition to your On click event like: System: compare 2 values GlobalVariable - Watermelonprice >= 0

  • Yes, I did it, it is a exemple:

    On Left Button Clicked on wathermelon >=0

    System > set contMelancia_global to 0

    but, when I click in the icon of the wathermelon, my money spends yet.

    How I can stop it? <img src="smileys/smiley18.gif" border="0" align="middle" />

  • You need to post your capx if you want help.

    I'm not sure what you want, I know it's not easy but your English isn't simple to understand ^^

  • Couldn't you just add another condition to the money spending?

    if contMelancia_global=0 don't deduct money?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Little Stain, this is what I already told him. Looks like he got a different problem... So we need a .capx or a screenshot

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)