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

#1 2011-01-20 20:05:31

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

How do you make a line connecting two points?

Let's say I'm making this thing that connects two draggable points.

My script:
[blocks]
<forever>
<pen down>
<go to[ sprite 1 ]>
<go to[ sprite 2 ]>
<pen up>
<clear>
<end>

Offline

 

#2 2011-01-20 20:20:03

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How do you make a line connecting two points?

Put the clear block at the top of the script (still inside the forever block) rather than the bottom.  Other than that the script shouldn't have any problems.

Last edited by Kileymeister (2011-01-20 20:23:03)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2011-01-20 23:37:27

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How do you make a line connecting two points?

it still keeps blinking.

Offline

 

#4 2011-01-21 01:18:20

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

Re: How do you make a line connecting two points?

It's impossible to stop the blinking - just use the Java Player, Presentation Mode or the Experimental Viewer.

A simpler script:

http://img214.imageshack.us/img214/2451/372simplescriptfordrawi.png

There's no need to make the pen continuously go up and down  tongue


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

Offline

 

#5 2011-01-21 20:13:13

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How do you make a line connecting two points?

well, there's this "centroid" thing that dapontes made, and that one doesn't blink...

Offline

 

#6 2011-01-22 11:09:57

Lar-Rew
Scratcher
Registered: 2010-02-19
Posts: 100+

Re: How do you make a line connecting two points?

That's because its online/fullscreen, if you download and don't fullscreen it blinks.

Offline

 

#7 2011-01-22 11:40:53

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: How do you make a line connecting two points?

kayybee wrote:

well, there's this "centroid" thing that dapontes made, and that one doesn't blink...

It will only blink offline in non-presentation mode, and it's a bad habit to view projects like that because things can go wrong, say you're viewing a mouse pointer project and you accidentally drag something out of place.

Last edited by Kileymeister (2011-01-22 11:41:19)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer