Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Score Counter
- EPlCUS
- Scratcher
6 posts
Score Counter
I would just like some help with a score counter I'm making. I tried to make my own script but it doesn't work. It is a custom block that uses clones. If you could please help me I'd be very thankful. XD
- EPlCUS
- Scratcher
6 posts
Score Counter
You misunderstood me. I need help with actually showing the text on the screen. I have a sprite with the numbers 0 to 9 in separate costumes. Now I just need to make the script that actually shows the score in the top corner of the game I'm making. Thanks for replying though! ^.^
- EPlCUS
- Scratcher
6 posts
Score Counter
I replied Create a variable named “score” Then use these blocks to change the score:set [score v] to [0]
change [score v] by (1)
(score)
- awesome-llama
- Scratcher
1000+ posts
Score Counter
You didn't say anything in the first post, so I answered with what I thought you were meaning. Anyway, this script should work: You misunderstood me. I need help with actually showing the text on the screen. I have a sprite with the numbers 0 to 9 in separate costumes. Now I just need to make the script that actually shows the score in the top corner of the game I'm making. Thanks for replying though! ^.^
when green flag clicked
forever
broadcast [delete clones v]
draw ::custom // run without screen refresh
end
define draw
go to x: (220) y: (160)
set [i v] to [1]
repeat (length of (score))
switch costume to (letter (i) of (score))
create clone of [myself v]
change x by (30)
change [i v] by (1)
end
when I receive [delete clones v]
delete this clone
Last edited by awesome-llama (Oct. 1, 2016 03:17:37)
- EPlCUS
- Scratcher
6 posts
Score Counter
Sorry for my vagueness in the first post. Anyways thanks! I'll try thisYou didn't say anything in the first post, so I answered with what I thought you were meaning. Anyway, this script should work: You misunderstood me. I need help with actually showing the text on the screen. I have a sprite with the numbers 0 to 9 in separate costumes. Now I just need to make the script that actually shows the score in the top corner of the game I'm making. Thanks for replying though! ^.^when green flag clicked
forever
broadcast [delete clones v]
draw ::custom // run without screen refresh
end
define draw
go to x: (220) y: (160)
set [i v] to [1]
repeat (length of (score))
switch costume to (letter (i) of (score))
create clone of [myself v]
change x by (30)
change [i v] by (1)
end
when I receive [delete clones v]
delete this clone
- EPlCUS
- Scratcher
6 posts
Score Counter
Thanks so much for you're help! Thanks to you I was able to finish the project today! Here it is: https://scratch.mit.edu/projects/122881995/ Thanks so much! And I credited you too! XDYou didn't say anything in the first post, so I answered with what I thought you were meaning. Anyway, this script should work: You misunderstood me. I need help with actually showing the text on the screen. I have a sprite with the numbers 0 to 9 in separate costumes. Now I just need to make the script that actually shows the score in the top corner of the game I'm making. Thanks for replying though! ^.^when green flag clicked
forever
broadcast [delete clones v]
draw ::custom // run without screen refresh
end
define draw
go to x: (220) y: (160)
set [i v] to [1]
repeat (length of (score))
switch costume to (letter (i) of (score))
create clone of [myself v]
change x by (30)
change [i v] by (1)
end
when I receive [delete clones v]
delete this clone
Last edited by EPlCUS (Oct. 2, 2016 00:24:51)
- AB_Smith4
- Scratcher
6 posts
Score Counter
wrong post, accidental comment.
Last edited by AB_Smith4 (March 9, 2020 15:13:37)
- Boomer001
- Scratcher
1000+ posts
Score Counter
Don't Definitelynecropost
https://scratch.mit.edu/projects/374534359
::::::::: :::::::: :::::::: :::: :::: :::::::::: ::::::::: ::::::: ::::::: ::: :+: :+: :+: :+: :+: :+: +:+:+: :+:+:+ :+: :+: :+: :+: :+: :+: :+: :+:+: +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+:+ +:+ +:+ +:+ +:+ +:+ :+:+ +:+ :+:+ +:+ +#++:++#+ +#+ +:+ +#+ +:+ +#+ +:+ +#+ +#++:++# +#++:++#: +#+ + +:+ +#+ + +:+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+# +#+ +#+# +#+ +#+ #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# #+# ######### ######## ######## ### ### ########## ### ### ####### ####### #######
- BossGamer1018
- Scratcher
83 posts
Score Counter
Anyone help me this just shows one and constantly bugs. And it doesnt even get the number right. Like it has 5 in money and it show 4 on the counter
- FireFlakes_1
- Scratcher
100+ posts
Score Counter
Please don't necropost. If you need help, create a new topic.
highlight this then ctrl+shift+down to see the whole thing
Comment “FIRE” on my profile if you made it this far down XD
- Captain_Teggs
- New to Scratch
1 post
Score Counter
I have made a score counter but I want to delete it and I don't know how. Anyone know?
- Harakou
- Scratcher
1000+ posts
Score Counter
Thanks folks, but this thread is very old. Please check the date and make sure that a post is still relevant when responding - and if you need help, please make your own topic.
- Discussion Forums
- » Help with Scripts
- » Score Counter