H
HanNic3197
Guest
Hello,
I keep getting the following error:
when trying to do the following code:
I'm trying to make a "countdown" animation with draw text to lower the bank amount to a new total. So I want the new total price = old total price - price of purchase
I thought it was possible to set a variable equal to (x - y) or (5 - 3), etc. What am I doing wrong?
Thank in advance!
I keep getting the following error:
when trying to do the following code:
Code:
new_total_coins = old_total_coins - global.costume_price
if(draw_coin_amount > new_total_coins)
{
switch(draw_coin_amount)
{
case 0:
draw_coin_amount= global.coins_totalcollected;
alarm_set(0,(room/speed)/2);
break;
case 1:
draw_coin_amount= drawn_coin_amount - 1;
alarm_set(0,(room_speed)/2);
break;
}
}
I thought it was possible to set a variable equal to (x - y) or (5 - 3), etc. What am I doing wrong?
Thank in advance!