Discuss Scratch

pioneer2487
New to Scratch
1 post

Circle

How do you make a sprite turn in a circle? Please help me.
Thank you
turkey3
Scratcher
1000+ posts

Circle

Hi there! Welcome to Scratch! I created a script here for you to show you how to make the sprite turn in a circle. It's in the Scripts Sandbox at the bottom.

drmcw
Scratcher
1000+ posts

Circle

If you mean rotate then in the move category is the turn clockwise or anti-clockwise degrees blocks or if you mean actually move the sprite in a circle then try this

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
lakshay
Scratcher
26 posts

Circle

The simplest way to do this is:

When Green Flag clicked
Repeat (360)
Move (1) steps
Turn (1) degrees

I want to die while sleeping peacefully like my grandfather, not screaming in terror like his passengers.
DotDash
Scratcher
1000+ posts

Circle

lakshay wrote:

The simplest way to do this is:

When Green Flag clicked
Repeat (360)
Move (1) steps
Turn (1) degrees
But the sprite wouldn't work if it was in the center, so it needs to be on a side

My browser / operating system: MacOS Macintosh X 10.8.5, Chrome 29.0.1547.76, Flash 11.8 (release 800)
lakshay
Scratcher
26 posts

Circle

DotDash wrote:

lakshay wrote:

The simplest way to do this is:

When Green Flag clicked
Repeat (360)
Move (1) steps
Turn (1) degrees
But the sprite wouldn't work if it was in the center, so it needs to be on a side
You mean we can't set where the centre should be? We can, using pi. Find the circumference. That is, in this case, 1X(360/1), (stepsX(360/angle))=360 pixels. The radius would be (circumference/pi)/2= (360/3.14159265…)/2
Then, if you want to keep the centre at x= -10, y=0, you can just start drawing from x position= -10-(1Xradius) and y position=0.

Last edited by lakshay (July 23, 2013 07:11:43)


I want to die while sleeping peacefully like my grandfather, not screaming in terror like his passengers.
Lilifant7253
Scratcher
1000+ posts

Circle

pioneer2487 wrote:

How do you make a sprite turn in a circle? Please help me.
Thank you
Here is a Project where a sprite draws a circle. I hope it help.

I've reached the 1000+ post rank on wednesday, 11th Sept., 2013 18:29 (German time) / 12:29 (Eastern Standard Time)
Hi! I Iike helping others. So feel free to leave a question at my profile!

Powered by DjangoBB