User Text Input Not Working [SOLVED]

Chara

Member
I'm setting up a system that allows the player to type in a name for the character they play as, however the system seems to not be working..

I'm trying to set up a system that allows for the detection of the shift key being pressed. However, whether I'm holding it down or not, nothing shows up.

So far, I only have the code for the 'A' key in the first spot set up, since I'd rather not change everything once I find a tiny problem.

This is the code I'm using:
Code:
///CREATE EVENT
a=""
b=""
c=""
d=""
e=""
f=""
g=""
h=""
line="_"
i=0
l=1
Code:
///STEP EVENT
///Name Select Mechanics

//Line Blink
i+=0.05

if ( i = 2 ) 
{ i = 0 }

if ( i = 0 )
{ line = "" }

if ( i = 1 )
{ line = "_" }


//Letter Select

if ( l = 1 )
{
if keyboard_check(vk_shift)
{
    if keyboard_check_pressed(ord('A')) 
        { a = "A" }
    l+=1
}
else
{
    if keyboard_check_pressed(ord('A')) 
        { a = "a" }
    l+=1
}
}
Code:
///DRAW EVENT
draw_set_font(font3)
draw_text(x,y,a + b + c + d + e + f + g + h + line)
The problematic part of the code is the 'Letter Select' portion under the step event.
 
Top