How I do the sell button...

Get help using Construct 2

Post » Wed Jun 26, 2013 4:35 pm

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.
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Thu Jun 27, 2013 3:23 pm

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 >= 0Darklinki2013-06-27 15:24:45
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Fri Jun 28, 2013 1:21 pm

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?
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Fri Jun 28, 2013 1:38 pm

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 ^^
B
17
S
8
G
4
Posts: 473
Reputation: 6,211

Post » Fri Jun 28, 2013 1:46 pm

Couldn't you just add another condition to the money spending?
if contMelancia_global=0 don't deduct money?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jun 28, 2013 2:25 pm

Little Stain, this is what I already told him. Looks like he got a different problem... So we need a .capx or a screenshot
B
15
S
6
G
6
Posts: 512
Reputation: 5,555


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 28 guests