Erayd
Member
I'm not new to this, so when something like this just simply isn't working, I tend to lose my patience quickly. Truthfully, I'm probably just being a complete idiot, but here's the issue:
I am using place_meeting in conjunction with the device x and y position on an object to make it a button. So if the function returns true, then something happens, in this case going in to another room or starting the game. If I remove the place_meeting function, if I tap anywhere on screen the code runs smoothly without problem, but with the code, no matter where I touch the screen, nothing happens...
I am using place_meeting in conjunction with the device x and y position on an object to make it a button. So if the function returns true, then something happens, in this case going in to another room or starting the game. If I remove the place_meeting function, if I tap anywhere on screen the code runs smoothly without problem, but with the code, no matter where I touch the screen, nothing happens...
Code:
for(i = 0; i < 5; i++){
if(device_mouse_check_button_pressed(i, mb_left)){
if(place_meeting(device_mouse_x(i), device_mouse_y(i), obj_StartGame)){
room_goto(GameRoom);
state = "game";
}
}
}
Last edited: