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

#1 2009-09-12 19:16:37

melikanikole
Scratcher
Registered: 2009-09-12
Posts: 5

Help and am new to scratch

How do I make the ball bounce off the walls?  I tried and tried and am stuck.  I have to make it for class.

Please help me understand how to bounce the ball off the walls right way.

Offline

 

#2 2009-09-12 19:42:45

big-bang
Scratcher
Registered: 2008-02-21
Posts: 1000+

Re: Help and am new to scratch

melikanikole wrote:

How do I make the ball bounce off the walls?  I tried and tried and am stuck.  I have to make it for class.

Please help me understand how to bounce the ball off the walls right way.

[blocks]<if on edge, bounce>[/blocks]


http://i47.tinypic.com/6edrbm.jpghttp://i45.tinypic.com/dw9hmw.jpghttp://i50.tinypic.com/f28tvn.jpghttp://i45.tinypic.com/ruwaop.jpg

Offline

 

#3 2009-09-12 19:54:04

melikanikole
Scratcher
Registered: 2009-09-12
Posts: 5

Re: Help and am new to scratch

then how can i make the ball go slow bouncing to make it look like a real ball would do.  i made it work but it bounce too fast.  i tried http://scratch.mit.edu/forums/viewtopic.php?id=22826#req_message

Offline

 

#4 2009-09-13 01:51:37

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Help and am new to scratch

Say that you have a sprite that is a vertical wall somewhere on the screen.

[When green flag clicked)
[forever if <<touching [Sprite that is a wall]> or <touching [edge]>>
[][point in direction [(direction) + (180)]
[][repeat until <<touching [Sprite that is a wall]> or <touching [edge]>>
[][][move [choose an amount] steps]

To see it well, click the quote button. There's a bug.

Last edited by Jonathanpb (2009-09-13 01:52:39)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

Board footer