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

#1 2012-12-28 01:57:13

madiroby
New Scratcher
Registered: 2012-12-25
Posts: 12

Disappearing Trail?

Any way to have your pen trail vanish behind you?
please help

Offline

 

#2 2012-12-28 02:24:01

Aditya007
Scratcher
Registered: 2012-11-27
Posts: 63

Re: Disappearing Trail?

You can do this:

when gf clicked
forever
    glide [1] secs to x:([x position v] of [mouse pointer v]) y:([y position v] of [mouse pointer v]) 
    stamp
    wait [0.3] secs
    clear
end

Last edited by Aditya007 (2012-12-28 02:37:36)


Wolf_OS!!!  smile  Check My Stuff  tongue  Need Help?  Currently, I am http://blocks.scratchr.org/API.php?user=Aditya007&action=onlineStatus&type=square
http://i49.tinypic.com/15gy1j6.jpg

Offline

 

#3 2012-12-28 11:59:29

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Disappearing Trail?

Yes.  You can store your previous positions in a list pen a line to your positions a few frames back.  A potential script may be:

when gf clicked
delete (all v) of [x v]
delete (all v) of [y v]
add (0) to [x v]
add (0) to [x v]
add (0) to [x v]
add (0) to [x v]
add (0) to [y v]
add (0) to [y v]
add (0) to [y v]
add (0) to [y v]
go to x:(0) y:(0)
forever
your movement script goes here
replace item (4 v) of [x v] with (item (3 v) of [x v])
replace item (4 v) of [y v] with (item (3 v) of [y v])
replace item (3 v) of [x v] with (item (2 v) of [x v])
replace item (3 v) of [y v] with (item (2 v) of [y v])
replace item (2 v) of [x v] with (item (1 v) of [x v])
replace item (2 v) of [y v] with (item (1 v) of [y v])
replace item (1 v) of [x v] with (x position)
replace item (1 v) of [y v] with (y position)
pen down
go to x:(item (2) of [x v]) y:(item (2) of [y v])
go to x:(item (3) of [x v]) y:(item (3) of [y v])
go to x:(item (4) of [x v]) y:(item (4) of [y v])
pen up
go to x:(item (1) of [x v]) y:(item (1) of [y v])


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#4 2012-12-28 13:33:34

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

Re: Disappearing Trail?

MoreGamesNow's script works fine, just remember to add a clear block anywhere above pen down.


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

 

#5 2012-12-28 16:46:05

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Disappearing Trail?

Kileymeister wrote:

MoreGamesNow's script works fine, just remember to add a clear block anywhere above pen down.

Good call  wink


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#6 2012-12-28 20:29:33

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Disappearing Trail?

You could use this script:

when gf clicked
set pen size to (something)
forever
pen down
wait (0.07) secs
clear
end
Note: This way only works in turbo mode.
Example:http://scratch.mit.edu/projects/fetchydog567/3008034

Last edited by fetchydog567 (2012-12-28 20:33:21)


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#7 2012-12-29 14:54:06

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

Re: Disappearing Trail?

fetchydog567 wrote:

You could use this script:

when gf clicked
set pen size to (something)
forever
pen down
wait (0.07) secs
clear
end
Note: This way only works in turbo mode.
Example:http://scratch.mit.edu/projects/fetchydog567/3008034

You do know that you could improve your script by switching the pen down and clear blocks? This'll help reduce the flashing that you're experiencing.

I hope that this helps!


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

Offline

 

Board footer