Code: Select all
move graphic "box" to the points of graphic "line" in 1 seconds
Thanks!
Mark
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
move graphic "box" to the points of graphic "line" in 1 seconds
Code: Select all
on mouseUp
put the points of graphic "path" into tPointList
set the MoveSpeed to 500
-- MOVE FORWARD
repeat with i = 1 to the number of lines of tPointList
move graphic "spaceship" to line i of tPointList
end repeat
-- MOVE BACKWARD
repeat with i = the number of lines of tPointList down to 1
move graphic "spaceship" to line i of tPointList
end repeat
end mouseup
Code: Select all
Move to the points of graphic "path" descending
Code: Select all
on mouseUp
put the points of graphic 1 into tpointList
repeat with i = the number of lines of tpointList down to 1
put line i of tpointList & cr after tReversePoints
end repeat
delete last char of tReversePoints -- a return
set the points of graphic 1 to tReversePoints
end mouseUp
Code: Select all
on mouseUp
ReversePoints
move graphic "box" to the points of graphic "line" in 1 seconds
end mouseUp
on ReversePoints
put the points of graphic "line" into tpointList
repeat with i = the number of lines of tpointList down to 1
put line i of tpointList & cr after tReversePoints
end repeat
delete last char of tReversePoints -- a return
set the points of graphic "line" to tReversePoints
end ReversePoints