Discuss Scratch

TheDominator39
Scratcher
12 posts

I need help with Al Pong!

So with this pong, when you press space after a point on one player mode, the al doesn't work anymore. Why is that?

https://scratch.mit.edu/projects/256942761/#player

when green flag clicked
repeat until <Mom says no>
eat
game
SCRATCH!
broadcast [Help v]
end
when I receive [Help v]
Ask everyone for help
stop [this script v]
imfh
Scratcher
1000+ posts

I need help with Al Pong!

When the ball touches a goal, it runs ‘stop all.’ This stops the loop running for the AI. You will need to either start it again by broadcasting start game when space is clicked or use ‘stop all scripts in this sprite’ instead.

Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/
TheDominator39
Scratcher
12 posts

I need help with Al Pong!

Oh thanks! That worked perfectly!

Last edited by TheDominator39 (Nov. 12, 2018 00:43:26)


when green flag clicked
repeat until <Mom says no>
eat
game
SCRATCH!
broadcast [Help v]
end
when I receive [Help v]
Ask everyone for help
stop [this script v]

Powered by DjangoBB