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

#1 2009-09-28 20:19:42

nitromegamer
Scratcher
Registered: 2009-08-13
Posts: 45

Don't know how to make a Line Maker?

How to make a line maker:

1. Open new project
2. Create two red balls that are both draggable online
3. Create and sprite, it doesn't matter what it looks like because you wont see it.
4. Apply these scripts to the sprite made in step 3:

when flag clicked

hide

set pen size to (size of the line, I prefer you use 10)

set pen color to (color of line)

forever {

pen down

glide 1.0000 (It doesn't matter how many zeros to the right of the decimal, as long as
     there is a lot!) seconds to (name of ball one)

glide 1.0000 (It doesn't matter how many zeros to the right of the decimal, as long as
     there is a lot!) seconds to (name of ball two)

clear

}




Here is an example: http://scratch.mit.edu/projects/nitromegamer/692097
You won't get the flashing offline.

Offline

 

#2 2009-09-28 20:21:45

weswesrock
Scratcher
Registered: 2009-06-25
Posts: 500+

Re: Don't know how to make a Line Maker?

This doesn't belong in Trouble shooting

Offline

 

#3 2009-09-28 20:22:24

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Don't know how to make a Line Maker?

Interesting tutorial, this would be best put in the All About section.  smile

Offline

 

#4 2009-09-29 07:55:43

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: Don't know how to make a Line Maker?

nitromegamer wrote:

How to make a line maker:

1. Open new project
2. Create two red balls that are both draggable online
3. Create and sprite, it doesn't matter what it looks like because you wont see it.
4. Apply these scripts to the sprite made in step 3:

when flag clicked

hide

set pen size to (size of the line, I prefer you use 10)

set pen color to (color of line)

forever {

pen down

glide 1.0000 (It doesn't matter how many zeros to the right of the decimal, as long as
     there is a lot!) seconds to (name of ball one)

glide 1.0000 (It doesn't matter how many zeros to the right of the decimal, as long as
     there is a lot!) seconds to (name of ball two)

clear

}




Here is an example: http://scratch.mit.edu/projects/nitromegamer/692097
You won't get the flashing offline.

This would work as well:

Code:

[When flag clicked]
[hide]
[set pen size to (10)]
[set pen color to (100)]
[forever]
[][clear]
[][go to [ball1]
[][pen down]
[][go to [ball2]
[][pen up]
[end forever]

Offline

 

#5 2009-09-29 09:29:35

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Don't know how to make a Line Maker?

That's the best Text Blocks I've ever seen!

Offline

 

Board footer