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
10
S
4
Posts: 52
Reputation: 855

Post » Wed May 06, 2015 4:12 am

ImageImageImage
B
71
S
22
G
242
Posts: 3,734
Reputation: 134,994

Post » Wed May 06, 2015 9:43 am

@Sir LoLz ...something like this?

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

Post » Thu May 07, 2015 8:59 pm

ah both are fine answers. thank you!
B
10
S
4
Posts: 52
Reputation: 855


Return to How do I....?

Who is online

Users browsing this forum: ametueraspirant, dand, mickclarke and 28 guests