Pages: 1
I'm trying to get a ball sprite to bounce on contact with wall (pong style) but the result appears to be some sketchy teleporting around the edges of the screen. Does anyone have any idea why this might be happening?
Offline
Well, it might be due to the fact that the center of your ball isn't where it should be, so you could check that. Also, this could be caused by your bouncing script. If you show it, I could look at it quickly.
With regards,
ErnieParke
Offline
I'm using this:
when I receive [start] forever if <touching [Right]> point in direction <(direction) - [180]> move [2] steps turn clockwise <pick random [-50] to [50]> degrees end
Offline
KonceptZer0 wrote:
I'm using this:
when I receive [start] forever if <touching [Right]> point in direction <(direction) - [180]> move [2] steps turn clockwise <pick random [-50] to [50]> degrees end
That should be working, so now I'm assuming it's the center of your ball. You can always check it by going into edit the ball's costume, then by clicking on the + below the pallet of colors.
With regards,
ErnieParke
Offline
ErnieParke wrote:
KonceptZer0 wrote:
I'm using this:
when I receive [start] forever if <touching [Right]> point in direction <(direction) - [180]> move [2] steps turn clockwise <pick random [-50] to [50]> degrees endThat should be working, so now I'm assuming it's the center of your ball. You can always check it by going into edit the ball's costume, then by clicking on the + below the pallet of colors.
With regards,
ErnieParke
YES! That just solved pretty much all the problems I was having. (It's the first time I'm using Scratch, I wasn't even aware of the center's existance and importance) Thank you very much!
Offline
Pages: 1