Discuss Scratch

AGamer_S
Scratcher
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)
gor-dee
Scratcher
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
Scratcher
46 posts

I need help for damage counter in an Turn-based RPG.

gor-dee wrote:

I think you just need to change the damage# variable for a local one (for this sprite only)
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

Last edited by AGamer_S (Jan. 14, 2022 15:11:48)

gor-dee
Scratcher
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
Scratcher
46 posts

I need help for damage counter in an Turn-based RPG.

gor-dee wrote:

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
oh sorry. uhhhh yeah it did work. Thanks!
RadicalDavd
Scratcher
2 posts

I need help for damage counter in an Turn-based RPG.

I need help making damage counters it is hard

Powered by DjangoBB