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

#1 2010-08-17 14:53:20

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Turtle Graphics

View the project here!

For some unknown reason, this is a little buggy online. (What a surprise.) Please download.  smile

http://i36.tinypic.com/mvqc80.gif

What is Turtle Graphics?

Turtle graphics is a project made entirely in Scratch that allows you to edit and run scripts for a turtle that moves and draws images and shapes with the pen.

Features:

-10 commands centered around movement and the pen
-Nested looping!
-Two separate modes, one dedicated to editing scripts, and the other dedicated to running them
-Scroll through your scripts with the arrow keys (many thanks to rubiks cube guy238 for this feature)
-A turtle! Do you really need any other reason?

An example of edit mode:
http://i33.tinypic.com/2h2jib8.jpg

An example of run mode:
http://i35.tinypic.com/2mg34i1.jpg

Plans for the future:

For the next version (1.1)

-New blocks! (Set x/y to) and (Change x/y by). Maybe more.  big_smile
-Delete multiple lines
-Online bug fixing (hopefully)

For later versions:

-Pick random number
-Create, share, and import custom blocks (similar to app importing in iSyn)

Where did you get the idea for Turtle Graphics?

My project uses the turtle graphics system made popular by the Logo programming language introduced in 1967. The premise is an object, usually a small turtle or triangle, that travels around the screen and draws as it goes. Very interesting shapes can be drawn using this system, from simple polygons to complicated fractals. To read more about turtle graphics, please visit the Wikipedia Article.

Cool programs made using this:
Submit your own on this thread!

Code:

clear
pen up
set pen size to 1
turn left 90 degrees
move 210 steps
turn right 90 degrees
pen down
repeat 4
repeat 2
repeat 45
move 5 steps
turn right 4 degrees
end repeat
repeat 45
move 5 steps
turn left 4 degrees
end repeat
repeat 45
move 5 steps
turn right 4 degrees
end repeat
end repeat
change pen size by 2
end repeat

Last edited by Harakou (2010-08-19 22:01:23)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#2 2010-08-17 14:59:58

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Turtle Graphics

Its awesome!
Next version you should add the pick random block, if on edge bounce block, and some more!

Offline

 

#3 2010-08-17 15:08:46

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

Thanks for the suggestion. I want to make sure only the important blocks get added to save space, and for simplicity's sake, but I intend to make new blocks a feature in the next version.

Is everyone else having trouble with it online? The variables I used to display the scripts don't seem to be working properly online. -_-

Last edited by Harakou (2010-08-17 15:09:08)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-08-17 16:40:04

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

Got the online script viewing working pretty well, but it's still glitchy.  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2010-08-17 17:11:49

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Turtle Graphics

Great project  smile . I loved and favorited it (though favoriting of course, does nothing  tongue ).


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#6 2010-08-17 21:03:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Turtle Graphics

I loved it (twice, with two accounts because I accidentally logged into the wrong one  tongue  ) - keep up the good work! I left my thoughts in a comment from "Jallen." It's incredible! I've never been more impressed in my life. It's officially one of my favourite projects ever.

Offline

 

#7 2010-08-18 12:22:21

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Turtle Graphics

Cool! Once you add the pick random block, I could recreate my "Pen Cat" project and call it "Pen Turtle"!  big_smile  Also, it works fine online for me (except that deleting lines is glitchy). Speaking of deleting lines, you should have the option to delete multiple lines at once by separating the line numbers with commas or semicolons, or delete all the lines by typing "all".


Yawn.

Offline

 

#8 2010-08-18 12:27:31

turtlewarrior
Scratcher
Registered: 2009-06-19
Posts: 500+

Re: Turtle Graphics

I will say this: It's turtletastic. And that means something coming from a turtlewarrior

Offline

 

#9 2010-08-18 12:51:59

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

Thanks for all the comments and suggestions, everyone! (All 5 of you  tongue ) Here's a rundown of how I can work in your suggestions:

New blocks: Definitely a must for the next version. Someone commented on the project saying that we needed (set x/y to) and (change x/y by); those blocks are going in the next version for sure.

Delete multiple lines: That's probably something I can do.

Fixing the deleting problem online (doesn't update until you add a line): I have no idea why it does this, but I'll see what I can do.

Pick Random: I may not be able to get this in until later, as it will require a lot of extra programming.

I also have a couple other things planned. Stay tuned!  big_smile

PS: If you make any cool programs with this, post them here!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#10 2010-08-19 16:02:52

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

Uh, bump? What no one else likes my project?  tongue


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2010-08-19 16:30:39

zawicki1fromyoutube
Scratcher
Registered: 2008-07-31
Posts: 1000+

Re: Turtle Graphics

This is a great project! I can't wait to see how far you can go with this!


|Call Of Duty: Black Ops Wii Friend Code: 3519-4456-0013|
|Follow me on Twitter|Subscribe To My Youtube Channel

Offline

 

#12 2010-08-19 19:28:52

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

Thanks, zawicki1fromyoutube!

If I made this so you could make and import custom blocks, would anyone use that system?  big_smile


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#13 2010-08-19 19:32:51

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Turtle Graphics

Custom blocks? That would be interesting!

I'd probably use it  smile

Offline

 

#14 2010-08-20 13:00:12

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

Well then maybe I'll put it in!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#15 2010-08-21 16:00:02

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: Turtle Graphics

Harakou wrote:

Thanks for the suggestion. I want to make sure only the important blocks get added to save space, and for simplicity's sake, but I intend to make new blocks a feature in the next version.

Is everyone else having trouble with it online? The variables I used to display the scripts don't seem to be working properly online. -_-

They're cut off.


Yawn, another boring text signature. I should really make something better.

Offline

 

#16 2010-08-22 18:57:08

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

jackrulez wrote:

Harakou wrote:

Thanks for the suggestion. I want to make sure only the important blocks get added to save space, and for simplicity's sake, but I intend to make new blocks a feature in the next version.

Is everyone else having trouble with it online? The variables I used to display the scripts don't seem to be working properly online. -_-

They're cut off.

A bit, yes. That's something I'm pretty sure just can't be fixed, unfortunately. The main problem is when you delete a line...  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#17 2010-08-25 19:08:41

Diasty
Scratcher
Registered: 2009-08-29
Posts: 1

Re: Turtle Graphics

I like watching the turtle run around in circles  lol  great project!


yikes  wow! i have no designated quote or anything to put here!  big_smile

Offline

 

#18 2010-10-16 00:01:40

MasterOfDeception
Scratcher
Registered: 2009-12-29
Posts: 100+

Re: Turtle Graphics

I reccomend putting in the change pen color by and set pen color to blocks.


"My Language Arts teacher beat Chuck Norris up." -12three

Offline

 

#19 2010-10-16 00:38:26

nextstorm
Scratcher
Registered: 2009-12-13
Posts: 1000+

Re: Turtle Graphics

yikes  Teh awesomeness.


bye

Offline

 

#20 2010-10-16 13:16:04

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turtle Graphics

MasterOfDeception wrote:

I reccomend putting in the change pen color by and set pen color to blocks.

Good idea! I'm worried that some colors might not match the background well though.  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer