Trap/script for arrow keys?

Judy Perry jperryl at ecs.fullerton.edu
Thu Mar 6 19:17:01 EST 2003


Sarah,

I have these set in the openCard handler, so they DO possess a value prior
to the keydown being sent.

Ummm, yeah, it would be nice if things matched wouldn't it?!  Actually,
I'd just be happy to get the *&#! thing to move!

Judy
On Fri, 7 Mar 2003, Sarah wrote:

> Judy,
>
> I can't see where you set theXcoord and theYCoord initially. Try
> inserting these lines before the "switch" statement:
> 	put item 1 of the loc of btn "Fish" into theXCoord
> 	put item 2 of the loc of btn "Fish" into theYCoord
>
> It seems a bit illogical that you are using left & right arrows to move
> up & down and vice versa :-) I think you need to change it so that left
> & right change theXCoord and up/down change theYCoord.




More information about the use-livecode mailing list