E
Ellys
Guest
Hey coders,
I want to draw a sprite on click and have it stay there until I click again.
This is what i have so far.
if mouse_check_button_released(mb_left) && position_meeting(mouse_x, mouse_y, oStats)
{
draw_sprite(sStatBG, 0, 400, 400);
}
I understand the draw function is usually in the draw event but that draws the sprite immediately instead of on click. So this code is currently in my step (evidently doesn't work)
Any help would be appreciated, thank you.
I want to draw a sprite on click and have it stay there until I click again.
This is what i have so far.
if mouse_check_button_released(mb_left) && position_meeting(mouse_x, mouse_y, oStats)
{
draw_sprite(sStatBG, 0, 400, 400);
}
I understand the draw function is usually in the draw event but that draws the sprite immediately instead of on click. So this code is currently in my step (evidently doesn't work)
Any help would be appreciated, thank you.