J
jaigantor
Guest
So I have a button that creates an object that follows the mouse and when that object clicks on a tower is given
upgrade ++;
this is working fine and the counter is going up but in a step event(i wasn't sure if this would work but it seems to partially) I have the code
if upgrade == 0
range = 100;
damage = 40;
if upgrade == 1
range = 125;
damage = 80;
if upgrade == 2
range = 150;
damage = 160;
if upgrade == 3
range = 175;
damage = 320;
this works fine for the range but for some reason, the damage boosts straight to the 320 even if the tower was just placed any help appreciated
upgrade ++;
this is working fine and the counter is going up but in a step event(i wasn't sure if this would work but it seems to partially) I have the code
if upgrade == 0
range = 100;
damage = 40;
if upgrade == 1
range = 125;
damage = 80;
if upgrade == 2
range = 150;
damage = 160;
if upgrade == 3
range = 175;
damage = 320;
this works fine for the range but for some reason, the damage boosts straight to the 320 even if the tower was just placed any help appreciated