M
Mobie
Guest
I'm working on another educational game that requires the software to recognize the press of the comma key and the press of the period key. Are these two examples lame ways to call scripts? They both work but I'm unsure about using keyboard_lastchar. I wonder if that will somehow cause problems later, don't ask me how. (I usually read up a bit and then blindly flail until something works, so I'm never totally sure)
GML:
if(keyboard_lastchar == ",")script_execute(scr_commaPressed())
if(keyboard_lastchar == ".")script_execute(scr_periodPressed())
Last edited by a moderator: