K
KnightFury
Guest
So I have a surface and I'd like to be able to change colors with which everything is drawn in-game.
I have a button which is supposed to make the cursor draw with green:
But whatever I try to do with the mouse event (making it pressed, checked, etc.), the code applies instantly when I enter the room and the mouse is checked globally as well (instead of when I click on the sprite of the objtect that should be changing the color). What could I be missing here?
Will be grateful for any pieces of advice
Thanks.
I have a button which is supposed to make the cursor draw with green:
Code:
if mouse_check_button_released(mb_left)
{
surface_set_target(global.surface)
draw_set_color(c_green)
draw_line_width(pastx, pasty, _x, _y, 5)
surface_reset_target()
}
Will be grateful for any pieces of advice
Thanks.