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

#1 2010-02-15 14:10:52

jujubee834
Scratcher
Registered: 2010-02-15
Posts: 3

HELP with rotation

I am trying to make a model of the phases of the moon

can someone help me by telling me how i would make the moon rotate around the earth in a circle?

thanks SO much!

Offline

 

#2 2010-02-15 14:29:09

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

Re: HELP with rotation

Quick question before I explain: Do you want the complicated math way or the simple way?


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

 

#3 2010-02-15 17:37:10

jujubee834
Scratcher
Registered: 2010-02-15
Posts: 3

Re: HELP with rotation

haha obviously the simple way

Offline

 

#4 2010-02-16 16:46:00

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: HELP with rotation

Well, the easiest way is to edit the costume of the moon sprite and set the Costume Center (little plus sign button) outside of the moon, some distance from it in fact.  Then, just put the Turn blocks inside a Forever loop and you will get the result you are looking for.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2010-02-17 11:05:16

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

Re: HELP with rotation

I was busy with homework and Paddle2See answered it for me, that's the simple way.


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

 

#6 2010-02-17 11:30:49

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: HELP with rotation

The hard way uses trig, and im still trying to find the project i saw it used in. I think it was mayhem's but i think he deleted it.  sad


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#7 2010-02-17 11:50:33

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

Re: HELP with rotation

markyparky56 wrote:

The hard way uses trig, and im still trying to find the project i saw it used in. I think it was mayhem's but i think he deleted it.  sad

Basically you do this for the moon sprite:

<when green flag clicked>
<forever>
<go to x sad  (( X position of the earth <+> (( sin of <direction> <*> how far away )) )) )y sad  (( Y position of earth <+> (( cos of <direction> <*> how far away )) ))

And turn.
(I think)

Last edited by juststickman (2010-02-17 11:50:55)


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

 

#8 2010-02-17 14:34:26

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: HELP with rotation

juststickman wrote:

markyparky56 wrote:

The hard way uses trig, and im still trying to find the project i saw it used in. I think it was mayhem's but i think he deleted it.  sad

Basically you do this for the moon sprite:

<when green flag clicked>
<forever>
<go to x sad  (( X position of the earth <+> (( sin of <direction> <*> how far away )) )) )y sad  (( Y position of earth <+> (( cos of <direction> <*> how far away )) ))

And turn.
(I think)

Thanks! it works!


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer