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

#1 2007-11-16 21:02:30

Slacker101
Scratcher
Registered: 2007-07-23
Posts: 60

Bouncing

How do I get something to bounce off of wall in a level just not the edge.

Offline

 

#2 2007-11-16 22:59:47

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Bouncing

You need to change your direction when you are touching the wall.  There are many projects that do this already.  If you know a project that does what you want, download it and look at the code.

Offline

 

#3 2007-11-17 03:35:32

SimpleScratch
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Bouncing

Example code to do this is in the Pong game that comes with Scratch when the ball hits the bat.

regards

Simon

Offline

 

Board footer