A
Artwark
Guest
So I'm making this game on mobile and I've tried the following inorder to go to the next room.
obj_gametitle
Left Mouse button event
global.title = virtual_key_add(x,y,1024,728,mouse_check_button(mb_left));
virtual_key_show(global.title);
room_goto(rm_game);
If I click it, it doesn't go to the next room that is rm_game....any ideas how I can fix this. Keep in mind that I am doing it for mobile as earlier before adding the virtual key, it worked when using any key event
Then I noticed that there's a function called device_mouse_check_button so then I changed it and tried this.
if device_mouse_check_button(0,mb_left) == true
{
room_goto(rm_game);
}
In the compile section, it shows that it works but it still won't go to the next room.....how do I fix this?
obj_gametitle
Left Mouse button event
global.title = virtual_key_add(x,y,1024,728,mouse_check_button(mb_left));
virtual_key_show(global.title);
room_goto(rm_game);
If I click it, it doesn't go to the next room that is rm_game....any ideas how I can fix this. Keep in mind that I am doing it for mobile as earlier before adding the virtual key, it worked when using any key event
Then I noticed that there's a function called device_mouse_check_button so then I changed it and tried this.
if device_mouse_check_button(0,mb_left) == true
{
room_goto(rm_game);
}
In the compile section, it shows that it works but it still won't go to the next room.....how do I fix this?