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

#1 2008-07-19 20:41:16

Mlavista
Scratcher
Registered: 2008-07-19
Posts: 2

How can you make a sprite bounce when touching a color?

I am new with Scratch, trying my first project. I used to do it in Microworlds, just by making it turn 180 degrees, but when I try it here with If touching color x, turn 180, it doesn't do it.  I can't figure it out.  It should be very simple!
Thanks!

Offline

 

#2 2008-07-19 20:50:18

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: How can you make a sprite bounce when touching a color?

<point in direction( (( 180  <-> <direction>  ))

Though sometimes I reverse those, so try reversing them too


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-19 21:09:40

Mlavista
Scratcher
Registered: 2008-07-19
Posts: 2

Re: How can you make a sprite bounce when touching a color?

Thanks, I already tried Point in direction 180 but it is an absolute value, I need a relative turn that will turn 180 degrees no matter what position it is pointing..

Offline

 

#4 2008-07-19 21:15:01

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: How can you make a sprite bounce when touching a color?

Mlavista wrote:

Thanks, I already tried Point in direction 180 but it is an absolute value, I need a relative turn that will turn 180 degrees no matter what position it is pointing..

So reverse it. It will always work (or should always work)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

Board footer