When I added the last check for the key pressed it caused my player movement code to move very slowly. Also, it prevented me from pressing F11 to open up the debug panel. My guess is that I've reached some sort of limit. Can anyone suggest a work around method of capturing keyboard input? I would like to have the keys set in a STRING* at the top of my code so that they can be remapped later.
Check the manual (key_for_str), mouse_left is not listed there. Btw. you can speed your function up a little by calling key_for_str only once for each string and save the result in a variable.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual
I made a RPG template, which you can download in AUM100, which does mapping of keys like you have, but reads it from an external .ini file. This one does not have any slowdown, and is made in a seperate script, so all you have to do is include it, and you can use it straight away.