L
Lobos
Guest
A super basic question: how to use position_meeting properly?
My GUI contains tabs: if the player clicks on one, that is activated (and the others deactivated). I tought that would work:
for each tabs - but apperently thats not working. My question: what is the problem?
I tried some workarounds (like making a one-pixel obj_mouse and checking that, using collision_point, position_meeting), but none of them worked either (using numbers/letters works, but I would like to use the mouse too).
My GUI contains tabs: if the player clicks on one, that is activated (and the others deactivated). I tought that would work:
Code:
if ((mouse_check_button(mb_left)) && position_meeting(mouse_x, mouse_y, obj_controller_gui_mine))
{
...
I tried some workarounds (like making a one-pixel obj_mouse and checking that, using collision_point, position_meeting), but none of them worked either (using numbers/letters works, but I would like to use the mouse too).