Convert keycode to string (feature/expression)

Discussion and feedback on Construct 2

Post » Mon Feb 25, 2013 3:33 am

As indicated here (and other places):
http://www.scirra.com/forum/topic61814_page1.html

This sums it up nicely:
[QUOTE=thehen]this could make a good addition as an expression for the keyboard plugin? Painless to integrate too with String.fromCharCode(65) == 'A'.[/QUOTE]

Here is an example from my game where the player is viewing a keycode (which makes no sense) rather than what it says on their keyboard:

alspal2013-02-25 03:37:20
B
143
S
72
G
19
Posts: 1,777
Reputation: 21,704

Post » Mon Feb 25, 2013 2:32 pm

Good idea, will add to next release.
Scirra Founder
B
386
S
229
G
87
Posts: 24,207
Reputation: 191,712

Post » Fri May 03, 2013 2:42 am

Thanks for putting it in, there are some missing ones though? Just wondering if you're going to add the ones like: Up/down/left/right/spacebar etc? Or should i create lots of exceptions/code for it my self?alspal2013-05-03 02:43:52
B
143
S
72
G
19
Posts: 1,777
Reputation: 21,704

Post » Fri May 03, 2013 9:24 am

Arrows spacebar etc are there already.

Look at this post maybe will help
http://www.scirra.com/FORUM/string-from-key-code_topic65896_post406523.html?KW=key+code#406523shinkan2013-05-03 09:25:17
ImageImageImageImage
B
156
S
64
G
41
Posts: 2,589
Reputation: 34,613


Return to Construct 2 General

Who is online

Users browsing this forum: gustavo130899 and 6 guests