Discuss Scratch

JuliusCesarSalad313
Scratcher
11 posts

Adding score

https://turbowarp.org/730126204
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

JuliusCesarSalad313 wrote:

https://turbowarp.org/730126204
How do I make the
 (score) 
variable change when the ball sprite touches the bezelB sprite?
Glad to see it is working again, however, I also see that is gives you loads of points. To fix this put a
wait (0.5) secs
in 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

loopholeluk3 wrote:

how do I make a game which can play some of my oldest games
I don't know, but I recommend putting that in an AI topic, people may know what to do there.

Powered by DjangoBB