Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Score Display
- thecooltamato
-
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/
heres the project link help

https://scratch-mit-edu.ezproxyberklee.flo.org/projects/1135923989/
- jen6C
-
35 posts
Score Display
Here’s how to fix your score: 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/
In your “Bullet” sprite, find this code:
when I start as a cloneand simply add a “change score by (1)” block here:
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
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
-
1000+ posts
Score Display
Have done so and still don't see any script changing score. check again
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
-
3 posts
Score Display
removed–be nice
Last edited by spectre_specs (Today 16:53:08)
- Discussion Forums
- » Help with Scripts
-
» Score Display