How to add or subtract from a"Wallet" text?

Get help using Construct 2

Post » Sun Jan 10, 2016 8:58 pm

I am trying to create a little horse betting game but cant seem to be able to add or subtract from my winnings.

WalletText :500 HorseNumberTextBox: StakeTextBox:

I have 6 horses. I pick a horse number and enter it into the "HorseNumberTextBox", then I enter how much I want to bet into the "StakeTextBox".

once I press the Start button the horses run to the finish line. which ever horse hits the finish line first, its number is displayed in another text box called "Winner".
now ive been struggling with making what ever I have gambled in the StakeTextBox to tally up in my wallet or...if I lose the bet then for it to be deducted from my Wallet.
thanks for any hints n tips :)
B
10
S
2
G
1
Posts: 23
Reputation: 693

Post » Sun Jan 10, 2016 11:10 pm

What you want to use is variables..
you can make your calculations on them and then set the text to them..
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 » Mon Jan 11, 2016 1:35 pm

Post your Construct 2 file and I'll help you.
B
14
S
1
Posts: 65
Reputation: 732


Return to How do I....?

Who is online

Users browsing this forum: dzert14, JaisonAntoniazzi, NetOne, Solomon and 10 guests