S
Swegm
Guest
Hi
I have too big leaps from game maker, so i forget what im doing haha
but anyway i have a button wich is called
obj_button_house
Create Event:
image_speed = 0
image_index = 0
Step Event:
if (mouse_check_button_pressed(mb_left))
{
image_index = 1
cursor_sprite = spr_house
}
else
if mouse_check_button_released(mb_left)
{
image_index = 0
}
well it seems like even if i press outside far away from the button, it reacts and run the code..hmmm like its global
I have too big leaps from game maker, so i forget what im doing haha
but anyway i have a button wich is called
obj_button_house
Create Event:
image_speed = 0
image_index = 0
Step Event:
if (mouse_check_button_pressed(mb_left))
{
image_index = 1
cursor_sprite = spr_house
}
else
if mouse_check_button_released(mb_left)
{
image_index = 0
}
well it seems like even if i press outside far away from the button, it reacts and run the code..hmmm like its global