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)
Offline
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])
Offline
MoreGamesNow's script works fine, just remember to add a clear block anywhere above pen down.
Offline
Kileymeister wrote:
MoreGamesNow's script works fine, just remember to add a clear block anywhere above pen down.
Good call
Offline
You could use this script:
when gf clicked set pen size to (something) forever pen down wait (0.07) secs clear endNote: This way only works in turbo mode.
Last edited by fetchydog567 (2012-12-28 20:33:21)
Offline
fetchydog567 wrote:
You could use this script:
when gf clicked set pen size to (something) forever pen down wait (0.07) secs clear endNote: 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!
Offline