P
PhenomenalDev
Guest
Trying to make it so when a character of a string is typed it gets deleted from the string but so far it's not working since I'm having trouble reading the user input.
Here is my code:
if keyboard_check_pressed(ord(string_upper(string_char_at(text,1))))
{
text = string_delete(text,0,1)
}
Edit: Solved it, index was set to 0 when string index starts at 1 for some reason.
Here is my code:
if keyboard_check_pressed(ord(string_upper(string_char_at(text,1))))
{
text = string_delete(text,0,1)
}
Edit: Solved it, index was set to 0 when string index starts at 1 for some reason.