How do I get the last key pressed?

Get help using Construct 2

Post » Tue Jul 17, 2012 8:11 pm

I want to create a typing game. How would I get the last key pressed?

(It is possible I am thinking of doing it the wrong way, so if you have any questions or comments please speak up)
B
3
Posts: 3
Reputation: 381

Post » Wed Aug 14, 2013 5:21 pm

I was thinking Keyboard.StringFromKeyCode(0)

but that doesnt seem to work.


Anyone?
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Wed Aug 14, 2013 6:28 pm

Use the expression keyboard.StringFromKeyCode(Keyboard.LastKeyCode).

EDIT: Just saw that this was a necro-post. Sorry. Anyway that is the expression that you want, @krish. Next time please don't post across multiple threads.GeometriX2013-08-14 18:30:11
B
56
S
15
G
10
Posts: 910
Reputation: 11,972


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests