• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

iOS Reading touches on iOS

TheOnlyWRT

Member
So i just got game maker studio 2 working on my iphone and now i am trying to add in touch screen input. I read a little about virtual keys in the manual, and this is the code i have used:

Code:
keyShoot = virtual_key_add((window_get_width()-160), (window_get_fullscreen()-160), 160, 160, vk_space);
but i touch the screen and it doesnt do anything...... so, i am kinda clueless about how to program in touch input for ios. Thanks for the help!
 
T

TimothyAllen

Guest
window_get_fullscreen()-160
I dont use virtual keys... but i can tell you that window_get_fullscreen() returns true / false (1 / 0). Which means that line will be a negative position and probably off screen.
 
Top