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
Do you know any other good methods for achieving the same effect, then?
Offline
Stamp the sprite then draw the line?
Offline
I tried doing that...didn't seem to change anything. What's the stamping meant to achieve? Thanks for trying to help, though.
Offline
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.
Offline
Maybe put from sensing and motion,
<when green flag clicked>
<forever>
<pen up>
<go to x
(( x position of sprite <-> 5 )y
(( y position of sprite <+> 5 ))
<pen down>
<move( 5 or so )steps> (Make sure it's pointed in direction 90)
<clear>
<end>
Offline
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
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.
Offline
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.
Offline
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
The only way I can think of is stamp and then hide the sprite before the other pen draws.
Offline
Another stretch solution is in Streak. It is already there in the palette!
Offline