Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » "if on edge, bounce"
- b1wein
- Scratcher
11 posts
"if on edge, bounce"
The “if on edge, bounce” command is not working in one of my games. Please check it out!
when green flag clicked
forever
if <[name] = [ b1wein]> then
you are awesome!
end
- b1wein
- Scratcher
11 posts
"if on edge, bounce"
Yes. I have a game where a ball is supposed to bounce back and forth between 2 paddles, and bounce if it hits the side. It's called SuperBounce(does not work) and whenever the ball hits the wall, it moves back about 15 steps.
when green flag clicked
forever
if <[name] = [ b1wein]> then
you are awesome!
end
- HOWING
- Scratcher
500+ posts
"if on edge, bounce"
Can you give a link to the project so I can understand a little more? Yes. I have a game where a ball is supposed to bounce back and forth between 2 paddles, and bounce if it hits the side. It's called SuperBounce(does not work) and whenever the ball hits the wall, it moves back about 15 steps.
- b1wein
- Scratcher
11 posts
"if on edge, bounce"
when green flag clicked
forever
if <[name] = [ b1wein]> then
you are awesome!
end
- HOWING
- Scratcher
500+ posts
"if on edge, bounce"
http://scratch.mit.edu/projects/41074574/Hmm. I see, so your trying to get the ball to hit the paddle. Look in my Hard pong project for the pong scripts. For shortcut: http://scratch.mit.edu/projects/37827964/
- b1wein
- Scratcher
11 posts
"if on edge, bounce"
No, I can get the ball to bounce off the paddle, I just turned that off temporarily so that you could see the ball bounce off the edge.
when green flag clicked
forever
if <[name] = [ b1wein]> then
you are awesome!
end
- HOWING
- Scratcher
500+ posts
"if on edge, bounce"
I doesn't bounce correctly it's because the ball sprite isn't centered. There is a plus sign in the middle, drag the sprite to the center. (if your having trouble just put your finger to the center and drag the dot on the middle of the sprite to the center) No, I can get the ball to bounce off the paddle, I just turned that off temporarily so that you could see the ball bounce off the edge.
- b1wein
- Scratcher
11 posts
"if on edge, bounce"
Thanks!
when green flag clicked
forever
if <[name] = [ b1wein]> then
you are awesome!
end
- Discussion Forums
- » Bugs and Glitches
- » "if on edge, bounce"