This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-01 11:07:14

ProgrammingAddict
New Scratcher
Registered: 2011-08-23
Posts: 22

Bounce help

Can anyone make a bounce script so that when the ball hits the paddle in pong, you can control where it goes, so it bounces more to the left when it hits the left side of the paddle. It's also got to depend on the direction of the ball when it hits the paddle though, so even if the ball hits the paddle on the same part on two different bounces, if the direction is different, it will point in different directions?

Offline

 

#2 2011-09-01 11:27:39

ProgrammingAddict
New Scratcher
Registered: 2011-08-23
Posts: 22

Re: Bounce help

Anyone?

Offline

 

#3 2011-09-01 18:10:48

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Bounce help

Well it depends...is the ball moving in a specific direction or does it have an x and y velocity that guide it?


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

Board footer