T
TheTygrysekPL
Guest
I tried to put "draw_set_colour(c_red)" in mouse enter event but it does not work.
Can someone help me?
Can someone help me?
tcolor = 0;
tcolor = 1;
if (tcolor == 1)
{
draw_set_colour(c_red) ;
}
else
{
draw_set_colour(c_black) ;
}
Thanks manYou can only set drawing functions in the draw event, so you would need to check for the mouse enter there and change the color
You could make variable on create, and on mouse enter change that variable, in the draw event check the value of the variable and draw the appropriate color
Like
Create
Mouse enter eventCode:tcolor = 0;
Draw eventCode:tcolor = 1;
Code:if (tcolor == 1) { draw_set_colour(c_red) ; } else { draw_set_colour(c_black) ; }