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

#1 2012-10-30 13:49:56

jjmjjm
New Scratcher
Registered: 2012-10-25
Posts: 6

Help ASAP

Have to draw an randomized forest of trees using lines. So confused...

email - [email removed - please don't share contact information]

Last edited by Paddle2See (2012-10-30 16:42:59)

Offline

 

#2 2012-10-30 16:42:02

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Help ASAP

Hi jjmjjm - Please don't make a bunch of topics about the same problem...just add new posts on to your old topic next time, please.

There's a couple of ways this could be done - you could either use a sprite that looked like a line and stamp it to make a tree.  Or, you could use the Pen commands and draw straight lines by putting the pen down and moving the sprite.  I guess I would go with the pen myself because it's easier to vary the color, width and length of the lines.

As for making a forest...have your sprite randomly locate itself somewhere on the screen.  Then, have it draw a tree - but only use the "Point in direction", "Move n steps", "Pen up", "Pen down" blocks.  None of those depend on where it is on the screen.  So if you can teach your sprite how to draw a tree like that, then all you have to do is put it in a Repeat loop that puts it somewhere on the screen and then it can draw a tree there.  Hope that helps a bit  smile

Last edited by Paddle2See (2012-10-30 16:46:31)


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2012-10-30 20:27:30

jjmjjm
New Scratcher
Registered: 2012-10-25
Posts: 6

Re: Help ASAP

Thanks. I had no idea I had to posts. I thought my first one didn't do. I will Remove the other.

Offline

 

#4 2012-10-30 20:30:34

jjmjjm
New Scratcher
Registered: 2012-10-25
Posts: 6

Re: Help ASAP

Although I'm not too sure how to delete the other. Sorry. I'm new. Thanks for the help.

Offline

 

#5 2012-10-30 20:37:21

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Help ASAP

jjmjjm wrote:

Although I'm not too sure how to delete the other. Sorry. I'm new. Thanks for the help.

It's okay. Anyhow, just click "report" button and ask for the topic to be deleted for you.  wink


http://i46.tinypic.com/35ismmc.png

Offline

 

#6 2012-10-30 20:47:53

jjmjjm
New Scratcher
Registered: 2012-10-25
Posts: 6

Re: Help ASAP

I am just having troubles getting started with this script...

Offline

 

Board footer