Discuss Scratch

gingerbrain
Scratcher
7 posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

when green flag clicked
if <touching [blue wall v]> then
change [blue score v] by (1)
end

How to make it that it doesn't change it like 4 times in a row and it doesn't show like
Blue Score = 4 in one single touch ?
noahcherokee2016
Scratcher
4 posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

you need, when green flag clicked, if touching blue wall then, wait one second change blue score by one
noahcherokee2016
Scratcher
4 posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

noahcherokee2016 wrote:

you need, when green flag clicked, if touching blue wall then, wait one second change blue score by one
i followed you can you follow me
noahcherokee2016
Scratcher
4 posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

noahcherokee2016 wrote:

you need, when green flag clicked, if touching blue wall then, wait one second change blue score by one
PsychicAura
Scratcher
100+ posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

Can you provide the link to your project? But below is what I think you should change to code to.
when green flag clicked
point in direction (90)
forever
move (10) steps
if <touching [blue wall v] ?> then
change [blue score v] by (1)
turn cw (180) degrees
end
end
You can change the number in “move 10 steps” block to adjust the speed if you want.
Hope this helps!

Last edited by PsychicAura (Nov. 3, 2022 22:56:21)

gingerbrain
Scratcher
7 posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

https://scratch.mit.edu/projects/755233104/


when it hits the blue wall, it changes the score by 3 or 4 i want it to be 1 not 4.

Here's the real script:


when green flag clicked
point in direction (45 v)
go to x: (0) y: (0)
set [Blue score v] to [0]
set [Red score v] to [0]
wait (3) secs
forever
move (10) steps
if on edge, bounce
if <<touching [red paddle v] ?> or <touching [blue paddle v] ?>> then
turn cw (90) degrees
move (10) steps
end
if <touching [player blue wall v] ?> then
change [player red score v] by (1)
end
if <touching [player red wall v] ?> then
change [player blue score v] by (1)
end
if <(Blue score) > [6]> then
stop [all v]


else
if <(Red score) > [6]> then
stop [all v]
end
end
end
gingerbrain
Scratcher
7 posts

how to make a score system that waits 1 seconds before making a point to a team? in a paddle game

actually i just changed my script for yours psychic and it worked thank you so much you saved my life !

Powered by DjangoBB