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.
Offline
Would something like this work?
[set [Variable] to (0)]
[forever]
[][change [Variable] by (1)]
[][turn (15) degrees]
[][move (Variable) steps]
[end forever]
Offline
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.
Offline
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.
Offline