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

#1 2009-06-06 12:08:38

luigi8k
Scratcher
Registered: 2009-06-05
Posts: 3

Heellppp Needed Urgently!!!!!!!!

Hey, I've been set a task on scratch to do the following and I have very little time:

I have two characters on screen.

Both of them should spin in circular directions in opposite directions to each other (one clockwise and one anti-clockwise). I've figured out how to do that (turn clockwise/anticlockwise 6 degrees and move 6 steps). Then, when they touch, I need them to spin in the opposite direction to what they were spinning before. Then, when they touch again, they should spin in the opposite direction again (the original direction).

Thanks.

Last edited by luigi8k (2009-06-06 14:52:19)

Offline

 

#2 2009-06-06 12:29:53

Tag4eva
Scratcher
Registered: 2009-06-05
Posts: 100+

Re: Heellppp Needed Urgently!!!!!!!!

luigi8k wrote:

Hey, I've been set a task on scratch to do the following and I have very little time:

I have two characters on screen.

Both of them should spin in circular directions in opposite directions to each other (one clockwise and one anti-clockwise). I've figured out how to do that (turn clockwise/anticlockwise 6 degrees and move 6 steps). Then, when they touch, I need them to spin in the opposite direction to what they were spinning before. Then, when they touch again, they should spin in the opposite direction again (the original direction).

IF YOU HAVE EVEN THE SLIGHTEST IDEA, PLEASE POST A REPLY! I'M BEGGING YOU!!! PLEASE:) I'll try to answer your questions! PLEASE! PLEASE!
Thanks.

I think that maybe you should use these blocks:
<turn cw(  )degrees>
and
<turn cw(  )degrees>
I'm not sure how to script it exactly though.

Offline

 

#3 2009-06-06 13:48:34

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Heellppp Needed Urgently!!!!!!!!

well as im assuming this is a school project, you need to do it. But i will push you in the right direction. Use variables. if you multiply 6 by -1 it will be -6 and if you multiply -6 by -1 it will be 6 again. So all you do is that when the two collide you multiply a variable by -1 and this variable controls the amount you rotate/more steps

Offline

 

Board footer