Discuss Scratch

thecooltamato
Scratcher
3 posts

Score Display

so my score display dosent work and i set the cloneID to its only sprite and the repeat plus cloneing and the spaces dont work and then they all say 9
heres the project link help
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1135923989/
deck26
Scratcher
1000+ posts

Score Display

I don't see any code to change the score - where is it?
thecooltamato
Scratcher
3 posts

Score Display

check again
jen6C
Scratcher
35 posts

Score Display

thecooltamato wrote:

so my score display dosent work and i set the cloneID to its only sprite and the repeat plus cloneing and the spaces dont work and then they all say 9
heres the project link help
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1135923989/
Here’s how to fix your score:
In your “Bullet” sprite, find this code:
when I start as a clone
forever
if <(supernova) = [False]> then
if <<(PowerForCrystal) = [False]> and <(power) = [False]>> then
if <touching [Zombie v]?> then
wait (0) seconds
delete this clone
end
end
end
end
and simply add a “change score by (1)” block here:

when I start as a clone
forever
if <(supernova) = [False]> then
if <<(PowerForCrystal) = [False]> and <(power) = [False]>> then
if <touching [Zombie v]?> then
wait (0) seconds
change [score v] by (1)
delete this clone
end
end
end
end

Last edited by jen6C (Feb. 20, 2025 19:02:39)

deck26
Scratcher
1000+ posts

Score Display

thecooltamato wrote:

check again
Have done so and still don't see any script changing score.

I thought you wanted help but if you can't be bothered to point people towards the script that changes score why should we bother?

The other problem is your CloneID variable is global rather than local so all sprites see the same value.
thecooltamato
Scratcher
3 posts

Score Display

removed–be nice

Last edited by spectre_specs (Today 16:53:08)

Powered by DjangoBB