Hello all, I was testing the
Does anyone know how I can make
exit
features, but it seems like the exit feature does not quite work the way I expect it to, see below:
GML:
if keyboard_check_pressed(ord("E")){
{ //this is the beginning of the code block that I expected "exit" to close
cs_logAddEntry("exit test has begun.");
if keyboard_check(ord("M")){exit;}
cs_logAddEntry("if you had been hold [M], this line shouldn't print");
} //this is where I expected "exit" to bring me to.
cs_logAddEntry("exit test has ended."); //when the M key was held, this line and all below it does not run
}
exit
only close/skip the part of the code I want to?
Last edited: