Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Circle
- pioneer2487
- New to Scratch
1 post
Circle
How do you make a sprite turn in a circle? Please help me.
Thank you
Thank you
- lakshay
- Scratcher
26 posts
Circle
The simplest way to do this is:
When Green Flag clicked
Repeat (360)
Move (1) steps
Turn (1) degrees
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
But the sprite wouldn't work if it was in the center, so it needs to be on a side The simplest way to do this is:
When Green Flag clicked
Repeat (360)
Move (1) steps
Turn (1) degrees
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
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…)/2But the sprite wouldn't work if it was in the center, so it needs to be on a side The simplest way to do this is:
When Green Flag clicked
Repeat (360)
Move (1) steps
Turn (1) degrees
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
How do you make a sprite turn in a circle? Please help me.Here is a Project where a sprite draws a circle. I hope it help.
Thank you
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!
- Discussion Forums
- » Help with Scripts
- » Circle