Discuss Scratch

MikeyZilla787
Scratcher
6 posts

Boss Battle Health

Hello, I am working on a new game where there are bosses to kill. I have a problem with the boss's health, though. I hit the boss with my weapon until it reached 0, but when I hit it again, the variable would show negative numbers. Does anyone know how to do this? Let me know.
me_the_super
Scratcher
100+ posts

Boss Battle Health

What's it supposed to do after you kill the boss? Also, can you show me the project? I can see you're new to the forum, sending the link to your project is multitudes better than explaining everything in your project.
noobthedood4
Scratcher
29 posts

Boss Battle Health

You could do something like forever if (Boss Hp variable) less than 0 set (boss hp variable) to 0
MikeyZilla787
Scratcher
6 posts

Boss Battle Health

Okay thanks!
MikeyZilla787
Scratcher
6 posts

Boss Battle Health

I figured it all out, thanks guys.
noobthedood4
Scratcher
29 posts

Boss Battle Health

Np man
Ju2t_Hyper
Scratcher
9 posts

Boss Battle Health

please help im doing a boss battle and whenever i attack the boss it does 0 damage.


when green flag clicked
set [ v] to []
forever
if <touching player/?> then
if <key space pressed?> then
change [ v] by (-40)
end
end
end

Last edited by Ju2t_Hyper (Jan. 26, 2026 17:21:18)

Ju2t_Hyper
Scratcher
9 posts

Boss Battle Health

nvm i use the wrong varible for the damage system

Powered by DjangoBB