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:
set [score v] to [0]
change [score v] by (1)
(score)


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:
set [score v] to [0]
change [score v] by (1)
(score)
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:
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

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:
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
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:
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
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

:::::::::   ::::::::   ::::::::  ::::    ::::  :::::::::: :::::::::   :::::::   :::::::    :::   
:+:    :+: :+:    :+: :+:    :+: +:+:+: :+:+:+ :+:        :+:    :+: :+:   :+: :+:   :+: :+:+:   
+:+    +:+ +:+    +:+ +:+    +:+ +:+ +:+:+ +:+ +:+        +:+    +:+ +:+  :+:+ +:+  :+:+   +:+   
+#++:++#+  +#+    +:+ +#+    +:+ +#+  +:+  +#+ +#++:++#   +#++:++#:  +#+ + +:+ +#+ + +:+   +#+   
+#+    +#+ +#+    +#+ +#+    +#+ +#+       +#+ +#+        +#+    +#+ +#+#  +#+ +#+#  +#+   +#+   
#+#    #+# #+#    #+# #+#    #+# #+#       #+# #+#        #+#    #+# #+#   #+# #+#   #+#   #+#   
#########   ########   ########  ###       ### ########## ###    ###  #######   #######  ####### 
CHECK OUT MY FORUM STATS



















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.

highlight this then ctrl+shift+down to see the whole thing













































































Comment “FIRE” on my profile if you made it this far down XD
4Inf
Scratcher
18 posts

Score Counter

Did you make the draw black or is it outdated?
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?
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:

when green flag clicked
set [score] to [0]
forever
change [score] by (1)
if <(score) = [10]> then
broadcast [WIN Message]
end
end

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