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

#1 2009-03-05 12:19:29

anwoth
Scratcher
Registered: 2009-01-08
Posts: 6

Automatic centre of rotation

When drawing my own sprite how does Scratch determine the centre of rotation and is the initial pointing direction always toward the 3 oclock position. I know I can set the centre of rotation but I prefer to let Scratch do it for me.

Offline

 

#2 2009-03-05 12:31:58

daydreamgirl
Scratcher
Registered: 2009-02-20
Posts: 42

Re: Automatic centre of rotation

I think Scratch determines the center of rotation based on the center of the first costume you drew (i.e. if you make one costume based in the center, and the second costume in the corner of the screen, the rotation center will still be in the center of the screen.) The initial direction is always 90º (the three-o-clock position.)

Hope that helps.


Test Signature

Offline

 

#3 2009-03-06 06:27:08

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Automatic centre of rotation

daydreamgirl wrote:

I think Scratch determines the center of rotation based on the center of the first costume you drew (i.e. if you make one costume based in the center, and the second costume in the corner of the screen, the rotation center will still be in the center of the screen.) The initial direction is always 90º (the three-o-clock position.)

Hope that helps.

no...there is a center of rotation for each costume, and like you said, it will be based on the center of the costume.

Offline

 

#4 2009-03-08 18:42:23

anwoth
Scratcher
Registered: 2009-01-08
Posts: 6

Re: Automatic centre of rotation

Thanks for the replies to my very first posting. A further question on the same theme.  If I generate a sprite using say gimp and import that, is there any way I can set the centre of rotation or do I just have to accept the scratch choice?

Offline

 

#5 2009-03-08 18:53:17

abeair
Scratcher
Registered: 2008-07-19
Posts: 100+

Re: Automatic centre of rotation

anwoth wrote:

Thanks for the replies to my very first posting. A further question on the same theme.  If I generate a sprite using say gimp and import that, is there any way I can set the centre of rotation or do I just have to accept the scratch choice?

Yes, you import it into scratch, edit it, and change the COR (center of rotation).


http://dragcave.net/image/NPtA.gif
http://www.danasoft.com/sig/ObamaLovesMacs.jpg

Offline

 

#6 2009-03-08 19:13:20

anwoth
Scratcher
Registered: 2009-01-08
Posts: 6

Re: Automatic centre of rotation

Thanks for fast response, I managed to work it out for myself almost as soon as I asked the question. In case anyone else is interested you go into costume mode to do the editing. Simple once you know!!

Offline

 

#7 2009-03-09 13:24:51

anwoth
Scratcher
Registered: 2009-01-08
Posts: 6

Re: Automatic centre of rotation

Is there any one line equivalent for  rotation equivalent to
Glide for Z seconds to X   Y

The glide is splendid for smooth moves. I  know I can do  I can do small repeat angles allowing a short delay to achieve the effect but it is rather clumsy.

These questions are all to help me do teaching animations of plan views of Scottish Country dancing basic formations.

Offline

 

Board footer