Discuss Scratch

TheRealNetherBefore
Scratcher
1000+ posts

Issue with lives

link
I seem to be having an issue with my code where, rather than taking away one life after getting hit, it's taking away two. Can anyone figure out why this is happening?

*Drinks ketchup*
Life gives me lemons but lemons give me LIFE HONEY
Small Games | Tips and Advice | Boredom Cat | Misc
Want to make a fantasy world everyone on scratch can use? No? Want to join my sci-fi RP instead?

G'thorpax the Unspoken
mstone326
Scratcher
1000+ posts

Issue with lives

It is still broadcasting . because the log continues to touch so 2 are taken away. Add a wait until not touching log after the broadcast and it will fix your issue.

Technology Director / Teacher Grades K-8
Head High School Baseball Coach

Halloween Boss Battle - Taking Back our Woods
https://scratch.mit.edu/projects/257155118/
Most Recent - Meltman
https://scratch.mit.edu/projects/144049407/
Studio - My Best Projects
https://scratch.mit.edu/studios/4125978/
TheRealNetherBefore
Scratcher
1000+ posts

Issue with lives

mstone326 wrote:

It is still broadcasting . because the log continues to touch so 2 are taken away. Add a wait until not touching log after the broadcast and it will fix your issue.
Ok thanks!

*Drinks ketchup*
Life gives me lemons but lemons give me LIFE HONEY
Small Games | Tips and Advice | Boredom Cat | Misc
Want to make a fantasy world everyone on scratch can use? No? Want to join my sci-fi RP instead?

G'thorpax the Unspoken

Powered by DjangoBB

Standard | Mobile