I'm making a game where I need all of the buttons from F1 through F12. I got all of them to work, except F10. I want it to be Upon Pressing F10, but I cannot get it to work! Try it, it doesn't! Can someone help!?!?
Printable View
I'm making a game where I need all of the buttons from F1 through F12. I got all of them to work, except F10. I want it to be Upon Pressing F10, but I cannot get it to work! Try it, it doesn't! Can someone help!?!?
F10 behaves pretty much like Alt which is why you can't enter it
EDIT: i dunno if this violates the EULA (official word on this would be nice), but it should be possible to use a hex editor on the mfa to change the byte representing the key value, if you absolutely need F10... but it's quite possible that mfas don't work like that and changing something could corrupt the file
You could use the Control-X object to do it. (Which strikes me as slightly, well, easier.)
Although there's definitely something odd about it - it seems that it has a value (121) and name (F10) but detecting for either of those doesn't do anything. You'd have to keep track of the last key pressed in a String object or counter, and compare against that to see if it was pressed.
The Key object may also be able to do it, but I can't check as I don't have it.
well the EULA only forbid modification to EXEs and MMF itself and not the MFA files (i suppose since they're just save files) so i went ahead and found the event:
download
surprisingly, it's actually possible to use F10 as a normal key during runtime through this event
Thanks xyzzy! it worked. I'm making a game like guitar hero, but i really need all 12 buttons, and i didn't want it to not feature F10. thanks again!