How do I convert a number to a letter

Get help using Construct 2

Post » Wed May 06, 2015 3:48 am

Hello. I want to add a way for players to add a name to there character. thing is my game supports Controllers, and I want to let them inter there name at the same time(not using a keyboard). I'm thinking the classic style we all know from arcades were you scroll up and down until you have your letter, then hit "A" to select, then move to the next letter.

Sound simple right? Thing is I don't know how to pull letters like that. how it worked in my head was to hold a letter in an array. And if they press up or down to then replace the letter with the one above or below it. I figured to do that i would need the letters numerical value (a=1,b=2.ect) and to then increase or decrease it and reset it to one if it surpasses 26. But I can't think of a way to do this

So I guess my question is how do I convert a number to a letter?

Thanks
B
18
S
5
Posts: 58
Reputation: 1,169

Post » Wed May 06, 2015 4:12 am

ImageImageImage
B
72
S
22
G
290
Posts: 3,886
Reputation: 159,513

Post » Wed May 06, 2015 9:43 am

@Sir LoLz ...something like this?

capx> http://s000.tinyupload.com/index.php?fi ... 6668582043
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104

Post » Thu May 07, 2015 8:59 pm

ah both are fine answers. thank you!
B
18
S
5
Posts: 58
Reputation: 1,169


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests