I am having some trouble with a banking code. I want the code to add what is withdraw to the total money amount and what is deposited to the bank money amount. However, when I try to do so, the code glitches up. I have a file, which can probably help you see the situation that I am in. I have tried different adding and subtracting codes, but none of them seem to work.
Here's the withdrawal code:
on(release){%u2028bankmoney -= withdrawmoney%u2028totalmoney += withdrawmoney%u2028}
The deposit code:
on(release){%u2028bankmoney += depositmoney%u2028totalmoney -= depositmoney%u2028depositmoney = 0%u2028}
...and the frame code:
totalmoney = 1000;%u2028withdrawmoney = 0;%u2028depositmoney = totalmoney;%u2028bankmoney = 1000;
If you download the file, the codes will make a lot more sense.