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

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=dhI-NU3DW_I



Duration: 22:40
277 views
0


Visit my MC GAMES site: https://mcolverdesigns.itch.io

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

Updated: 12/5/20: GMS File: https://bit.ly/2JLPZXP

New video is coming soon on Virtual Keys. Dealing with alignment issues, and how to make Virtual Keys go away, and come back after pressing a button.

(Note:) When you delete Virtual Keys, they will return, even if they are not active. It would be good practice to do this...
fkey = virtual_key_add(0,0,0,0, vk_enter);///make all numbers at zero.
virtual_key_delete(fkey);

That way the virtual key that is deleted will not interfere with other buttons, if say you slide your fingers on both buttons, where one is active and the other is not.

Resources:

GUI Location: https://bit.ly/37ffQNM

GUI Size: https://bit.ly/2tNxZos

Virtual Key Add: https://bit.ly/2SdPcR2

Code:

obj_fire, Depth -500

Events:

Create

Actions:

fkey = virtual_key_add(3110,2700,400,400, vk_enter);

virtual_key_show(fkey);

Events:

Draw GUI

Actions:

display_set_gui_size(view_wview[0]+2464, view_hview[0]+1472);

Events:

Draw

Actions:

draw_sprite(sprite_index,image_index,view_xview[0]+2464,view_yview[0]+1472);

obj_not_fire, Depth -500

Events:

Create

Actions:

fkey = virtual_key_add(3110,2700,400,400, vk_enter);

virtual_key_delete(fkey);

Events:

Draw

Actions:


draw_sprite(sprite_index,image_index,view_xview[0]+2464,view_yview[0]+1472);

Events:

Draw GUI

Actions:

display_set_gui_size(view_wview[0]+2464, view_hview[0]+1472);

obj_pause, Depth -400

Events:

Left Pressed

Actions:


instance_deactivate_all(true);


instance_activate_object(obj_back);

instance_activate_object(obj_marker);

instance_activate_object(obj_pause_it);


obj_back, Depth -400

Events:

Left Pressed

Actions:

instance_activate_all();

instance_deactivate_object(obj_pause_it);




Other Videos By MC Designs


2020-05-30Game Maker Studio: How to Create a Swing Axe?
2020-05-23Game Maker Studio: How to Move on Rope?
2020-05-17Game Maker Studio: How to Move on Steps & Slopes?
2020-05-15Game Maker Studio: How to Move Up & Down on a Ladder & a Shortcut?
2020-05-09Game Maker Studio: How to Collect all items in the Room for Door to Open?
2020-05-09Game Maker Studio: How to Use Hp for your Characters?
2020-05-01Game Maker Studio: How to Create Animated Backgrounds.
2020-04-25Game Maker 8.1: How to Create Fire Background Particles.
2020-04-19Game Maker 8.1: How to Create Shake Screen.
2020-04-11Game Maker 8.1: How to Create Pause Screen for Both Rooms.
2020-04-04Game Maker Studio: (Part 3) How to Create Virtual Keys for Android?
2020-03-28Game Maker 8.1: Understanding Hit Points, & Create Bubble Head with Sound Effects.
2020-03-21Game Maker 8.1: How to Create Hitpoints for Monsters & Barrels.
2020-03-14Game Maker 8.1: How to Create Fade In, & a Flashing Dead Screen.
2020-03-07Game Maker 8.1: How to Create Rollover Buttons, & Animate Weapons In.
2020-02-29Game Maker 8.1: How to Create Custom Pause for 8.1 & Timer.
2020-02-22Game Maker 8.1: How to Fix Cursor Glitch, Hide & Reveal Inventory Glitch, & Pause Game.
2020-02-15Game Maker 8.1: How to Create a Cursor, Hide & Reveal Inventory, & Fix Load Glitch.
2020-02-09Game Maker Studio: (Part 2) How to Create Virtual Keys for Android?
2020-02-01Game Maker Studio: (Part 1) How to Create Virtual Keys for Android?
2020-01-26Game Maker 8.1: How to Create a Save, Load, & Ice.



Tags:
how
learn
teach
find
player
code
create
object
sprite
game
maker
width
length
instance
room
if
place
set
global
distance
get
draw
check
visible
android
move
keyboard
board
studio
gui
size
add
display
coordinate
vk
release
press
pressed
center
left
right
up
down
power
button
two
device
tablet
scale
position
static
mouse
released
virtual
key
layer
deactivate
activate
pause
screen
camera
view
part