define home go to x () y () when flag clicked homeScratch will automatically set the X and Y coordinates to the place where you have put the label to start.
when flag clicked forever if <not <mouse down?>> then end end
if <touching [1 v]> then else home end
start sound [Coin v] stop [this script v]
define home go to x () y () when flag clicked home when flag clicked forever if <not <mouse down?>> then if <touching [1 v]> then start sound [Coin v] stop [this script v] else home end end end
when flag clicked set drag mode [draggable v]
set [total v] to (0)
change [total v] by (1)
if < (total) = () > then
play sound [win v] until done
stop [all v]
(timer)
if < < (timer) < (Best Time) > or < (Best Time) = (0) > > then
set [Best Score v] to (timer)