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

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



Duration: 29:56
119 views
0


Visit my MC GAMES site, got a new game coming soon, play Alien Wars BattleFront Demo:
https://bit.ly/2HJ1GxK

Paypal Donate: https://bit.ly/30e8VDZ

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

Note: Do not mark your virtual keys "Persistent", if you have a save and load in the game, you're virtual keys will be gone when you load the game. You need to place them in every room. Its best to make all your buttons, then duplicate the room, so you don't have to place the buttons in the room again.

Events: Be sure to use "Room Start" on all your virtual keys, if not, the virtual keys will disappear once you resume game again, and the buttons will not work on device.

Events: Draw GUI
Actions: display_set_gui_size(view_wview[0]+3300,view_hview[0]+1991);

Be sure "Room" under views tab, view in room and port on screen is set W: 3300 and H: 1991 if that is the size of you're room.
Be sure display set gui has the same wview size and hview size as what is stated above 3300, 1991 so that the virtual keys remain locked in there locations on the buttons, even if you press pause and then resume game. If you don't have the same Weight and Height for you're GUI as you're room size, then the virtual keys will not be on the buttons, and the buttons will not work.







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