• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Trying to get a string to delete when characters are typed

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.
 

MIchael PS

Member
Please, edit ur tittle and add a [Solved] at the beginning so that people won't come accidentally here. Anyway good job and good luck with your project!!!
 
Top