Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
x_THOR_x
19
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 3rd Mar 2011 23:17
I need help with key press.
I am trying to set up a few actions. There are 4 actions, you make them run by pressing the T key. But I dont know how to set it up so the user can select witch action they want buy pressing a differrent key (Z).

So if the user wants action #1 he presses the Z key 1 time, then presses the T key to run the action, but then if the user wants to run the 2nd action he can press the Z key again and it will jump to action 2 and he has to press the T key to run action 2.

Is this possible?
sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 3rd Mar 2011 23:59
look into the (case) comm.
renny

Life is not fair, so deal with it.
http://www.gusroundtable.com/
x_THOR_x
19
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 4th Mar 2011 00:34 Edited at: 4th Mar 2011 01:16
I am trying stuff like this but I cant quite get it. Im sure I am doing something really wrong.
Master Man Of Justice
18
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 4th Mar 2011 01:18 Edited at: 4th Mar 2011 01:26
Here is an example i have made. Simple.


x_THOR_x
19
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 4th Mar 2011 01:24
Thank you so much, I understand now. I just couldnt get it, Thank You.
Master Man Of Justice
18
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 4th Mar 2011 01:27
No problem. I love some quick challenges so, you're doing me a favor by keeping me on my toes

x_THOR_x
19
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 4th Mar 2011 02:31 Edited at: 4th Mar 2011 02:37
If I can make you jump on your toes 1 more time here real quick please..
I tried to edit the code so you have to HOLD DOWN spacebar to run the animation and when you release it the animation stops. But all I can get out of it is the object wont turn at all or it turns REAL slow then speedsup a little when I press the spacebar.

SPACEBAR DOWN = RUN
SPACEBAR UP = STOP
If SPACEBAR = DOWN then disable the Z key from being pressed
If Z Key = DOWN then disable the SPACEBAR key from being pressed
Master Man Of Justice
18
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 4th Mar 2011 02:49
Yah sure, here ya go.



x_THOR_x
19
Years of Service
User Offline
Joined: 26th Feb 2007
Location:
Posted: 4th Mar 2011 02:56
Your quick man. Thanks alot, I think I can get it to work from here. Take a rest, get off your feet for a while, lol.
Master Man Of Justice
18
Years of Service
User Offline
Joined: 13th Feb 2008
Location: Between Insanity and Intelligence
Posted: 4th Mar 2011 02:58
Haha. No problem, anytime.

Login to post a reply

Server time is: 2026-07-16 23:19:33
Your offset time is: 2026-07-16 23:19:33