Make two buttons. In the script of btn 1:
Code: Select all
on mouseUp
set the loc of btn 2 to "100,200"
repeat 300
set the loc of btn 2 to (item 1 of the loc of btn 2) + 1 & ",200"
wait 1 millisec
end repeat
end mouseUp
In HC, the travel is very jerky, but does not change from one incarnation to the next.
I know LC is not an animation program. How do it know how many times the user has clicked that button? What builds up internally, that seems to clear itself regularly?
Craig Newman
SIDENOTE: HC will not compile the above handler. I must either use a "do" construction, or:
Code: Select all
...
get (item 1 of the loc of btn 2) + 1 & ",200"
set the loc of btn 2 to it