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
15
S
5
Posts: 54
Reputation: 1,086

Post » Wed May 06, 2015 4:12 am

ImageImageImage
B
71
S
22
G
267
Posts: 3,807
Reputation: 147,745

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,084

Post » Thu May 07, 2015 8:59 pm

ah both are fine answers. thank you!
B
15
S
5
Posts: 54
Reputation: 1,086


Return to How do I....?

Who is online

Users browsing this forum: worm1 and 23 guests