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

#1 2010-04-17 05:29:06

EtherealSkys
Scratcher
Registered: 2010-04-14
Posts: 4

Make a player controlled sprite bounce off of another sprite...?

For example, you control sprite 1, and every time sprite 1 hits sprite 2, sprite 1 bounces off and moves at 2x speed for 2 seconds. How would you write that?

Offline

 

#2 2010-04-17 06:26:00

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

Re: Make a player controlled sprite bounce off of another sprite...?

http://img704.imageshack.us/img704/169/136scriptsformovementwi.png

One script is for moving the sprite, and the other is for the flipping and changing of speed. One thing though - the sprite will only flip its direction, not really a bounce. If you want a real bounce - and not a random bounce - don't ask me, I don't know how.  tongue

Last edited by Jonathanpb (2010-04-17 06:29:26)


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

Offline

 

#3 2010-04-17 06:27:24

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Make a player controlled sprite bounce off of another sprite...?

Try this? http://scratch.mit.edu/projects/justtestingstickman/970730


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer