Game Maker Studio: (Part 1) How to Create Virtual Keys for Android?

Опубликовано: 10 Май 2026
на канале: MC Designs
912
14

Visit my Search Arena site: https://searcharena.wordpress.com

Paypal Donate: http://bit.do/fkPAb

GMS File: https://bit.ly/2uex5S3

Another way of understanding the Virtual Keys, Nathan Auckett:
https://bit.ly/3bqnAji

obj_right, Origin Centered x and y, Depth -50

Events:

Create

Actions:

key = virtual_key_add(256,256,100,100, vk_right);

display_set_gui_size(room_width,room_height);

Then be sure to add the keyboard key press and release move events in with player.


obj_left, Origin Centered x and y , Depth -50

Events:

Create

Actions:

key = virtual_key_add(64,224,100,100, vk_left);

display_set_gui_size(room_width,room_height);

Then be sure to add the keyboard key press and release move events in with player.


obj_up, Origin Centered x and y, Depth -50

Events:

Create

Actions:

key = virtual_key_add(160,96,100,100, vk_up);

display_set_gui_size(room_width,room_height);

Then be sure to add the keyboard key press and release move events in with player.


obj_down Origin Centered x and y, Depth -50

Events:

Create

Actions:

key = virtual_key_add(160,352,100,100, vk_down);

display_set_gui_size(room_width,room_height);

Then be sure to add the keyboard key press and release move events in with player.


obj_power, Origin Centered x and y, Depth -50

Events:

Create

Actions:

key = virtual_key_add(512,224,100,100, vk_enter);

display_set_gui_size(room_width,room_height);

Then be sure to add the keyboard key press and release move events in with player.