L
Langsley
Guest
I have an object with a create event with the code:
var cardSelected = 0;
and then a step event in the same object with the code:
if (mouse_check_button_pressed(mb_left))
{
if(cardSelected == 0)//if card is not selected, change to selected
{
cardSelected = 1;
}
}
for some reason the step event doesn't recognize that cardSelected was set by the create event. I've tried changing the step event to a mouse click event and fudging with the self. modifier to no avail. Any help would be appreciated.
var cardSelected = 0;
and then a step event in the same object with the code:
if (mouse_check_button_pressed(mb_left))
{
if(cardSelected == 0)//if card is not selected, change to selected
{
cardSelected = 1;
}
}
for some reason the step event doesn't recognize that cardSelected was set by the create event. I've tried changing the step event to a mouse click event and fudging with the self. modifier to no avail. Any help would be appreciated.