Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Adding score
- JuliusCesarSalad313
-
Scratcher
11 posts
Adding score
https://turbowarp.org/730126204
How do I make the
How do I make the
(score)variable change when the ball sprite touches the bezelB sprite?
- EvanD2008
-
Scratcher
100+ posts
Adding score
I noticed that you had added an ‘if <> then’ block in the script which contained the instructions to make the ‘score’ variable go up by one. However, it's not in the forever loop, so put it in there.
- skywalker858347
-
Scratcher
100+ posts
Adding score
https://turbowarp.org/730126204Glad to see it is working again, however, I also see that is gives you loads of points. To fix this put a
How do I make the(score)variable change when the ball sprite touches the bezelB sprite?
wait (0.5) secsin your script. The script should look like this in the end:
when green flag clicked
forever
if <touching [bezelB v] ?> then
change [score v] by (1)
point in direction (180 v)
move (15) steps
wait (0.5) secs
end
if <touching [beazelA v] ?> then
broadcast [message one v]
end
if <touching [paddle v] ?> then
point in direction (pick random (-89) to (89)
move (15) steps
end
if <touching [paddle2 v] ?> then
point in direction (pick random (-91) to (91)
move (15) steps
end
I hoped this helped!
Last edited by skywalker858347 (Sept. 15, 2022 23:43:06)
- JuliusCesarSalad313
-
Scratcher
11 posts
Adding score
Thank you both of you for making me realize possibly the stupidest mistake I could have made! And special thanks to skywalker858347 for fixing the other problem that I was just trying to fix! Thanks again!
- loopholeluk3
-
Scratcher
15 posts
Adding score
how do i make a game which can play some of my oldest games
- skywalker858347
-
Scratcher
100+ posts
Adding score
how do I make a game which can play some of my oldest gamesI don't know, but I recommend putting that in an AI topic, people may know what to do there.
- Discussion Forums
- » Help with Scripts
-
» Adding score



