Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I need help for damage counter in an Turn-based RPG.
- AGamer_S
-
46 posts
I need help for damage counter in an Turn-based RPG.
The numbers that show how much damage you have done only show one digit.
Someone please help. Here's a link: https://turbowarp.org/628078172
(Only the punch attack works currently)
Someone please help. Here's a link: https://turbowarp.org/628078172
(Only the punch attack works currently)
- gor-dee
-
1000+ posts
I need help for damage counter in an Turn-based RPG.
I think you just need to change the damage# variable for a local one (for this sprite only)
- AGamer_S
-
46 posts
I need help for damage counter in an Turn-based RPG.
i made a new local variable and switched out all the uses of damage # with the new one. still doesnt work. it doesnt matter because thats the only sprite that uses that variable I think you just need to change the damage# variable for a local one (for this sprite only)
Last edited by AGamer_S (Jan. 14, 2022 15:11:48)
- gor-dee
-
1000+ posts
I need help for damage counter in an Turn-based RPG.
Your ‘damage#2’ variable is still ‘for all sprites’ and you don't seem to have changed every use, just some. The reason it needs to be local is you are using clones and they will get their own version of the variable
- AGamer_S
-
46 posts
I need help for damage counter in an Turn-based RPG.
oh sorry. uhhhh yeah it did work. Thanks! Your ‘damage#2’ variable is still ‘for all sprites’ and you don't seem to have changed every use, just some. The reason it needs to be local is you are using clones and they will get their own version of the variable
- RadicalDavd
-
2 posts
I need help for damage counter in an Turn-based RPG.
I need help making damage counters it is hard
- Discussion Forums
- » Help with Scripts
-
» I need help for damage counter in an Turn-based RPG.