So whenever I sell some of my currency/variables I get the gold/variable but the remaining just disappears. I have it on
[subtract crystal1 from cystal1]
This subtracts all of it and brings it to zero....How would I set it so the remaining goes back to crytal1?
If I have 13 crystal1's and I sell 4......9 should go back to crystal1
Why would you subtract it from itself? Why not just remove the amount you want like you do in the very first line of the event?
Also, you are setting them to 0 a second later anyway, what's the point in that?
Develop games in your browser. Powerful, performant & highly capable.
Logic could simply just be :
NumToSell = 4
Price = Green (4?)
On left click button :
Subtract NumToSell from Crystal1 Total
Add to Gold : NumToSell (4) * Green (4)
Set NumToSell to 0