tiarasandtech
Member
I'm working with the Little Town Tutorial for GSM2 & I purchased an indie sub so I can build and package to android. I'm able to run the game on my connected Samsung Galaxy S10+ but no taps are showing up in the output. If I click buttons on the device (volume, bixby), I see those register in the output. The tutorial shows you how to create a title screen with "Press enter to play" and I wanted to recreate this for android using a double tap. I created a double tap gesture event in obj_control & copied the same code from the Key Pressed - Enter event which works on Windows:
I also tried adding the following code to enable/disable double mouse click and set the gesture_double_tap_time in a Room Start event:
I can double-tap all day but nothing happens
GML:
/// @description Double tap to play
if (room == rm_mainTitle) {
if (global.gameStart == false) {
audio_stop_all();
global.gameStart = true;
room_goto(rm_gameMain);
}
}
Code:
switch room {
case rm_mainTitle: {
audio_play_sound(snd_seq_good01_BGM,1,1);
//Enable gestures for Android
device_mouse_dbclick_enable(false);
gesture_double_tap_time(0.16);
}; break;
Last edited: