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

#1 2011-05-10 15:45:46

goodtime41
New Scratcher
Registered: 2011-04-11
Posts: 8

how to make an object bounce off another

So Iets say I got sprite 1 moving to random coordinates on the screen, in a random amount of time. Then I have sprite 2, which you control, and when sprite 1 hits it, I want sprite 1 to bounce off sprite 2, and go to a different point on the screen, since its path was disrupted by by sprite 2 being in the way.

Offline

 

#2 2011-05-10 15:46:18

12three
Scratcher
Registered: 2008-06-12
Posts: 1000+

Re: how to make an object bounce off another

Look up a pong game and use that base.

Offline

 

#3 2011-05-10 17:06:54

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: how to make an object bounce off another

I do it in this game:

Click -> http://scratch.mit.edu/static/projects/BoltBait/513961_sm.png

Hope this helps.

Last edited by BoltBait (2011-05-10 17:07:26)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

Board footer