V
VansiusProductions
Guest
Hi guys
When you click on each one of them, it will set a value to the variable groupHover.
However when I click on the air group (the top most one, groupHover = 1) , earth group(2nd one) SHOWS UP! It doesn't make sense!
This is my code under the mouse enter event:
it should set groupHover to 1 when i click air group. I have the game to display a debug message of groupHover's value and it's always 2 when I touch air group. Any idea what's wrong?
When you click on each one of them, it will set a value to the variable groupHover.
However when I click on the air group (the top most one, groupHover = 1) , earth group(2nd one) SHOWS UP! It doesn't make sense!
This is my code under the mouse enter event:
Code:
if (place_meeting(mouse_x,mouse_y,obj_group_air)) {global.groupHover = 1}
if (place_meeting(mouse_x,mouse_y,obj_group_earth)) {global.groupHover = 2}
if (place_meeting(mouse_x,mouse_y,obj_group_fire)) {global.groupHover = 3}
if (place_meeting(mouse_x,mouse_y,obj_group_water)) {global.groupHover = 4}