Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

I'm trying to use the key parameter to trigger a common event. I have multiple pictures and want to use the Escape key to erase the pictures. Right now I have an attach command in my event that I added all the picture IDs to and then hoping call a common event that erases all pictures when pressing the escape key. Do I need to use like an ASCII value for the key or put something like "ESC" in the parameter. Or is Escape a reserved key that can't be used since it calls the pause menu by default? Right now the command does nothing if I put ESC as the key parameter.

Thanks!

(2 edits)

Hi, I believe it should work if you put "Escape" (case sensitive) instead of "ESC", but it might get confused with the menu depending on which code gets called first. If you have pictures that require hitting escape up, I would recommend to disable the menu when the picture gets its escape attachment and re-enable the menu when the picture is erased in your common event. You can enable/disable the main menu via Event Command (Page 3 -> System Settings -> Change Menu Access)

(+1)

That worked. Appreciate your help!!