Discuss Scratch

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
awesome-llama
Scratcher
1000+ posts

Score Counter

Create a variable named “score” Then use these blocks to change the score:
setscoreto0changescoreby1score
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

awesome-llama wrote:

Create a variable named “score” Then use these blocks to change the score:
setscoreto0changescoreby1score
I replied
awesome-llama
Scratcher
1000+ posts

Score Counter

EPlCUS wrote:

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! ^.^
You didn't say anything in the first post, so I answered with what I thought you were meaning. Anyway, this script should work:
whenclickedforeverbroadcastdelete clonesdraw run without screen refreshdefinedrawgotox:220y:160setito1repeatlengthofscoreswitchcostumetoletteriofscorecreatecloneofmyselfchangexby30changeiby1whenIreceivedelete clonesdeletethisclone

Last edited by awesome-llama (Oct. 1, 2016 03:17:37)

EPlCUS
Scratcher
6 posts

Score Counter

awesome-llama wrote:

EPlCUS wrote:

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! ^.^
You didn't say anything in the first post, so I answered with what I thought you were meaning. Anyway, this script should work:
whenclickedforeverbroadcastdelete clonesdraw run without screen refreshdefinedrawgotox:220y:160setito1repeatlengthofscoreswitchcostumetoletteriofscorecreatecloneofmyselfchangexby30changeiby1whenIreceivedelete clonesdeletethisclone
Sorry for my vagueness in the first post. Anyways thanks! I'll try this
EPlCUS
Scratcher
6 posts

Score Counter

awesome-llama wrote:

EPlCUS wrote:

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! ^.^
You didn't say anything in the first post, so I answered with what I thought you were meaning. Anyway, this script should work:
whenclickedforeverbroadcastdelete clonesdraw run without screen refreshdefinedrawgotox:220y:160setito1repeatlengthofscoreswitchcostumetoletteriofscorecreatecloneofmyselfchangexby30changeiby1whenIreceivedelete clonesdeletethisclone
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! XD

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

AB_Smith4 wrote:

Definitely

https://scratch.mit.edu/projects/374534359
Don't necropost
cartierd123
Scratcher
1 post

Score Counter

It didn't work for me??? Can I have some help!?
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.
4Inf
Scratcher
18 posts

Score Counter

Did you make the draw black or is it outdated?
Captain_Teggs
New Scratcher
1 post

Score Counter

I have made a score counter but I want to delete it and I don't know how. Anyone know?
17-0575Lam
Scratcher
1 post

Score Counter

Thanks, it works for me too!!
The_Imaginarium
Scratcher
1000+ posts

Score Counter

Reported to be closed from necroposting.
Thinkright20man
Scratcher
100+ posts

Score Counter

I recommend it like this:

whenclickedsetscoreto0foreverchangescoreby1ifscore=10thenbroadcastWIN Message

Hope that helped you out!

Last edited by Thinkright20man (May 30, 2021 15:53:15)

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.

Powered by DjangoBB