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

#1 2009-07-21 14:43:29

cheeserules5419
Scratcher
Registered: 2009-06-21
Posts: 8

Question about the Pen tool

Does anyone know how to make the pen tool draw above other sprites? I'm using the (go to Point A) (pen down) (go to Point B) (pen up) (clear) method in order to draw a line from point A to point B, but I want the line to be above other sprites. Any suggestions?

Offline

 

#2 2009-07-21 14:44:46

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

Re: Question about the Pen tool

Sorry, but I don't think you can.

Offline

 

#3 2009-07-21 17:50:57

cheeserules5419
Scratcher
Registered: 2009-06-21
Posts: 8

Re: Question about the Pen tool

Do you know any other good methods for achieving the same effect, then?

Offline

 

#4 2009-07-21 17:53:07

ihaveamac
Scratcher
Registered: 2007-09-22
Posts: 1000+

Re: Question about the Pen tool

Stamp the sprite then draw the line?


~ihaveamac - visit ihaveamac.net

Offline

 

#5 2009-07-21 18:04:00

cheeserules5419
Scratcher
Registered: 2009-06-21
Posts: 8

Re: Question about the Pen tool

I tried doing that...didn't seem to change anything. What's the stamping meant to achieve? Thanks for trying to help, though.

Offline

 

#6 2009-07-21 20:17:12

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

Re: Question about the Pen tool

To get the effect you are looking for, you would have to stamp the sprite (which puts an image of the sprite on the pen layer), then hide the sprite (or move it), then use the pen to draw over the stamped image.


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

Offline

 

#7 2009-07-21 21:46:02

Oneandonly
Scratcher
Registered: 2009-02-07
Posts: 100+

Re: Question about the Pen tool

Maybe put from sensing and motion,

<when green flag clicked>
<forever>
<pen up>
<go to x sad  (( x position of sprite <-> 5 )y sad   (( y position of sprite  <+> 5  ))
<pen down>
<move( 5 or so )steps> (Make sure it's pointed in direction 90)
<clear>
<end>

Offline

 

#8 2009-07-21 22:39:31

cheeserules5419
Scratcher
Registered: 2009-06-21
Posts: 8

Re: Question about the Pen tool

Paddle2See wrote:

To get the effect you are looking for, you would have to stamp the sprite (which puts an image of the sprite on the pen layer), then hide the sprite (or move it), then use the pen to draw over the stamped image.

Oh, I see what you mean. Doesn't that take up a LOT of processing power? I mean, if I wanted to have the line drawn over all my sprites, some of which are constantly moving and would have to be stamped every step?

Offline

 

#9 2009-07-21 23:14:07

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Question about the Pen tool

cheeserules5419 wrote:

I tried doing that...didn't seem to change anything. What's the stamping meant to achieve? Thanks for trying to help, though.

Stamp the sprite, then HIDE IT, then draw the line.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#10 2009-07-21 23:20:20

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Question about the Pen tool

Also, you can achieve a similar effect with the obsolete stretch block. Make a costume to be a rectangle of the desired colour, measuring 1x100 pixels. Set the rotation centre to be one end, and add this script to it:
/*'''''''''''''''''''''''*&^~____
[When flag clicked]
[forever]
||[point towards {sprite A}]
||[go to {sprite B}]
||[set stretch effect to(distance to {sprite A}]
[end forever]

Hope this helps!
For a decent, but not as good effect, the stretch may be replaced by a size block.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#11 2009-07-21 23:40:45

cheeserules5419
Scratcher
Registered: 2009-06-21
Posts: 8

Re: Question about the Pen tool

billyedward wrote:

Also, you can achieve a similar effect with the obsolete stretch block. Make a costume to be a rectangle of the desired colour, measuring 1x100 pixels. Set the rotation centre to be one end, and add this script to it:
/*'''''''''''''''''''''''*&^~____
[When flag clicked]
[forever]
||[point towards {sprite A}]
||[go to {sprite B}]
||[set stretch effect to(distance to {sprite A}]
[end forever]

Hope this helps!
For a decent, but not as good effect, the stretch may be replaced by a size block.

Thank you, that is EXACTLY what I was looking for! But I can't seem to find the stretch effect...sorry, I'm new to Scratch. Where is it located?

Offline

 

#12 2009-07-26 13:20:03

justtestingstickman
Scratcher
Registered: 2009-07-04
Posts: 100+

Re: Question about the Pen tool

The only way I can think of is stamp and then hide the sprite before the other pen draws.


http://img509.imageshack.us/img509/2126/smalladvert.pnghttp://img175.imageshack.us/img175/8867/advertisementfor3sprite.pnghttp://img696.imageshack.us/img696/6061/failc.png
This signature has too many lines.

Offline

 

#13 2009-07-26 13:46:08

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

Re: Question about the Pen tool

The stretch effect can be found here.

Offline

 

#14 2009-07-29 22:21:27

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: Question about the Pen tool

Another stretch solution is in Streak. It is already there in the palette!


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

Board footer