Discuss Scratch

squabblethebat
Scratcher
97 posts

pong game by myself no remix

I'm having a hard time making the paddle move with the ball and it keeps going up fast and down fast
(I think it thinks its slick WELL ITS NOT)
https://scratch.mit.edu/projects/1124186487/
please help as fast as u can
deck26
Scratcher
1000+ posts

pong game by myself no remix

Why are you CHANGING y position by y position of sprite2? You probably want to use set to, not change by although it will mean the ball will never get past the paddle.

If y position of the ball is 50 you're moving the paddle up 50 pixels every frame!
Pepper_MI123
Scratcher
55 posts

pong game by myself no remix

squabblethebat wrote:

I'm having a hard time making the paddle move with the ball and it keeps going up fast and down fast
(I think it thinks its slick WELL ITS NOT)
https://scratch.mit.edu/projects/1124186487/
please help as fast as u can

With this type of thing It would most likely be best to use a code that makes the paddle follow the mouse's Y position. This code down here should work:

when green flag clicked
forever
set y to (mouse y)
end
squabblethebat
Scratcher
97 posts

pong game by myself no remix

thanks to u I added mobile mode

Powered by DjangoBB