Ok, i have a variable for ammo in a project im working on but when i tell the script to change ammo by -1 it does it but does not change the number on the readout and it's really important that it shows the number. Why is this.
Offline
when gf clicked forever if <key [space v] pressed?> change [ammo: V] by (-1) end
when gf clicked forever if <(ammo:) = (0)> broadcast [reload v] endI did something like this
Offline
If the display isn't changing, your script is probably incorrect (looks fine to me though ). It is possible that you deleted "ammo:" and then created the variable again. If that's the case, to fix it you'll have to go through all your blocks that reference "ammo:" and replace them with new blocks.
Offline
Your project "World War Boot Camp" appears to be working fine, is it a different one?
Offline
MoreGamesNow wrote:
If the display isn't changing, your script is probably incorrect (looks fine to me though ). It is possible that you deleted "ammo:" and then created the variable again. If that's the case, to fix it you'll have to go through all your blocks that reference "ammo:" and replace them with new blocks.
No, Scratch remembers a deleted variable's name, so you can restore them without changing any of the blocks.
Last edited by rdococ (2012-03-21 14:19:22)
Offline