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

#1 2010-09-29 17:15:32

Cmontes
New Scratcher
Registered: 2010-09-29
Posts: 2

New Member - Trouble creating spiral

Hello everyone. I'm messing around with this program for school, and I'm able to create basic shapes like a square, triangle and a circle. I'm having a hard time trying to get a spiral going. If anyone can give me some tips I'd be very grateful.
Please and thank you.  smile

Offline

 

#2 2010-09-29 20:45:06

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: New Member - Trouble creating spiral

Would something like this work?

[set [Variable] to (0)]
[forever]
[][change [Variable] by (1)]
[][turn (15) degrees]
[][move (Variable) steps]
[end forever]


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-09-30 08:51:33

Guinea_Pig_Girl
Scratcher
Registered: 2010-08-25
Posts: 100+

Re: New Member - Trouble creating spiral

Jonathanpb wrote:

Would something like this work?

[set [Variable] to (0)]
[forever]
[][change [Variable] by (1)]
[][turn (15) degrees]
[][move (Variable) steps]
[end forever]

That works! I tried it! I added a bit like "clear" and "go to x:0 y:0" but other from that, it works! You'll have to add Pen blocks if you're drawing a spiral though.  smile


http://img841.imageshack.us/img841/783/misstdd.png
Put this in your siggy if you miss The_Dancing_Donut!

Offline

 

#4 2010-09-30 15:33:41

Cmontes
New Scratcher
Registered: 2010-09-29
Posts: 2

Re: New Member - Trouble creating spiral

Jonathanpb, thank you very much for helping me with this. I'd like to know if you could possibly explain what this variable use does exactly. I changed the Forever loop to a repeat loop, so I could get a Spiral of proportionate size. I changed the a few numbers around to see how the spiral effect responds to each chance.

But otherwise, thank you very much and well done.  smile

Offline

 

Board footer