Hides a given created virtual key previously shown on the screen of the device.



Argument Description
index The index of the virtual key to delete.

Returns: N/A


If your game has different rooms or instances to control menus and game-play and other things, then it is probable that you will need to change the position and key maps of your virtual keys at some point. For that you can use this function to delete the old ones before creating the new ones (if necessary). Note, however, that the virtual keys will be automatically removed from the room at its end, so this function is only necessary when you wish to manually remove the keys before the room itself has finished.



The above code deletes the virtual key indexed in the global variable "global.Left".

Back: Virtual Keys
Next: virtual_key_add
© Copyright YoYo Games Ltd. 2018 All Rights Reserved