Page 1 of 1

key down

PostPosted: Sat Jul 01, 2006 11:06 pm
by frodo
I have an animation of the alphabet in sign language, and I want do be able to press any letter on the keyboard and the animpos with the letter that I pressed to come up. for instance, If I press "a" on the keyboard I want the right sign to come up.
I could do this by doing a key down event on all the keys, and type the right animpos in the script area, but I'd be 70 years old by the time I got done with that :mrgreen:.
would I use "getlastkey"? :?: :?: :?: :?:

PostPosted: Sun Jul 02, 2006 3:16 pm
by pavel329
well you could just clone all of them as many times as you want then change there transparency.you would still have to use key down but not script.only change transperency.i know wat ur talking about.

PostPosted: Sun Jul 02, 2006 4:27 pm
by Game A Gogo
or just set the visibely state to dont draw but allow events and on key down change it to enable.

PostPosted: Tue Jul 04, 2006 3:27 pm
by frodo
I don't think you guys understand. I want to have a key down with any key, and then in script editor specify which key.
I think someone posted something like this before, but I can't find it.

PostPosted: Tue Jul 04, 2006 4:57 pm
by Kodo
You talking about Remapping keys?

PostPosted: Tue Jul 04, 2006 8:59 pm
by Novice
I think the easiest way would be to use getLastKey function and get the ASCII number of each key pressed. And use a simple fuction like
Code: Select all
animpos=key+65;
in draw actor where key is a variable where you sotred the getLastKey and +65 or something is to jump over all the signs in the ASCII table and to get to A.