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

#1 2010-09-05 23:18:24

13hoka1
New Scratcher
Registered: 2010-09-05
Posts: 6

How to make an object bounce off another?

I'm making an asteroid game where you have to dodge asteroids but I need the asteroids to bounce off one another to make it harder. Help?

Offline

 

#2 2010-09-06 02:49:28

dazman
Scratcher
Registered: 2008-02-21
Posts: 26

Re: How to make an object bounce off another?

<when green flag clicked>
<forever if><touching[ asteroid 1
<turn cw( 180 )degrees>
<wait until><<  <not>  >><touching[ asteroid 1
<end>

I think this should work.
This script may have to be copied and edited many times if you have a lot of asteroids

Last edited by dazman (2010-09-06 02:49:56)


http://scratch.mit.edu/static/icons/buddy/82338_med.png

Offline

 

#3 2010-09-06 08:31:30

13hoka1
New Scratcher
Registered: 2010-09-05
Posts: 6

Re: How to make an object bounce off another?

MG, you're awesome. Thanks!

Offline

 

#4 2010-09-06 09:56:21

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: How to make an object bounce off another?

Topic resolved, closing.
Topic not advanced, moving.


http://i.imgur.com/8LX1NrV.png

Offline

 

Board footer