Trap/script for arrow keys?
Judy Perry
jperryl at ecs.fullerton.edu
Thu Mar 6 18:26:00 EST 2003
Still doesn't work:
on arrowKey tKey
switch tKey
case "left"
subtract "10" from theYcoord
set the loc of btn "Fish" to theXcoord,theYcoord
break
case "right"
add 10 to theYcoord
set the loc of btn "Fish" to theXcoord,theYcoord
break
case "up"
subtract 10 from theXcoord
set the loc of btn "Fish" to theXcoord,theYcoord
break
case "down"
add 10 to theXcoord
set the loc of btn "Fish" to theXcoord,theYcoord
break
end switch
end arrowKey
???
Judy
More information about the use-livecode
mailing list