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

#1 2012-06-20 08:09:58

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Rotate around a certain point

Posting in advanced topics because I doubt the casual user in Help With Scripts would have a solution.

I am looking for a way to rotate a sprite around a point that is not the costume center. I need a way to create a moving costume center.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#2 2012-06-20 08:54:55

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Rotate around a certain point

Hold on... I'll be right back with an answer!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2012-06-20 09:04:52

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: Rotate around a certain point

this project seems to have what youre looking for

Offline

 

#4 2012-06-20 09:34:40

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Rotate around a certain point

I was about to say translate, rotate, translate drawImage, but then I notice this was Scratch.  tongue

I'll have an answer in a bit too. >:)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5 2012-06-20 09:47:08

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Rotate around a certain point

Here: http://scratch.mit.edu/projects/MathWizz/2623422

Last edited by MathWizz (2012-06-20 09:47:15)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#6 2012-06-20 11:09:29

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Rotate around a certain point

Grrr you beat me to it!  tongue


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#7 2012-06-20 11:17:00

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: Rotate around a certain point

Hardmath123 wrote:

Grrr you beat me to it!  tongue

i beat everybody but i didnt make anything

Offline

 

#8 2012-06-20 11:17:14

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Rotate around a certain point

Hardmath123 wrote:

Grrr you beat me to it!  tongue

You had an hour head start.  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#9 2012-06-20 11:18:31

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Rotate around a certain point

777w wrote:

Hardmath123 wrote:

Grrr you beat me to it!  tongue

i beat everybody but i didnt make anything

"Yours" doesn't rotate. Ha!  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#10 2012-06-20 11:34:23

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Rotate around a certain point

MathWizz wrote:

Hardmath123 wrote:

Grrr you beat me to it!  tongue

You had an hour head start.  tongue

To think, yes. But I was called away to do something else, which is why I wasn't near a computer to code it and send. Anyway, good job.  wink


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#11 2012-06-20 11:35:26

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: Rotate around a certain point

MathWizz wrote:

777w wrote:

Hardmath123 wrote:

Grrr you beat me to it!  tongue

i beat everybody but i didnt make anything

"Yours" doesn't rotate. Ha!  tongue

yes it does, change the "position" slider and the cat will make a circle around the point. thats not so much rotation as it is orbiting but with a little work it could rotate

Offline

 

#12 2012-06-20 18:24:00

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Rotate around a certain point

Awesome, thank you guys a lot.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

Board footer