C
C#•2y ago
EmoEmu_69

The score is not updating when objects are destroyed by a powerup

thanks in advance!
5 Replies
hiyosilver
hiyosilver•2y ago
Same dance as usual? 🙂 Are you sure the function gets called at all when you think it ought to be? Does it enter the first if? If so, how are you determining that its not updating. Anything specific is pretty much impossible for anyone here to know if we cant see your code. btw, a shorthand for "set the value of x to itself plus some number" is x += number or since it's just adding 1 you can simply write nukePoints++ aka the increment operator.
TheRanger
TheRanger•2y ago
use Debug.Log method to make sure the method is being called is nukePoints a static variable or normal?
EmoEmu_69
EmoEmu_69OP•2y ago
I don't know how I keep forgetting to test that 💀 I need to make a sticky note or something I'm in class rn, so I'll get that goin as soon as I'm home
hiyosilver
hiyosilver•2y ago
I suspected that might be the case 😉
EmoEmu_69
EmoEmu_69OP•2y ago
alright sorry for the delay, the method isn't activating at all I figured it out thanks guys
Want results from more Discord servers?
Add your server