Game Development Community

A way to determine keyboard input [Solved]

by Ryan Jones · in Torque Game Builder · 03/19/2011 (7:59 am) · 2 replies

Is there a way to display the key being pressed on a keyboard to store in a variable? Like a character selection screen, so when press keyboard up I could display up was pressed.

#1
03/20/2011 (2:43 am)
I think this could work:
give your actor a name then in the function called with bindCmd change the alpha value of the actor or its imageMap.
#2
03/20/2011 (8:51 pm)
Great idea, it worked! Thank you much. I'm a bit ashamed I didn't think of this.

Edit: The behavior I created to handle this is huge, but works perfectly.