anima
Member
so im triying to make an shop UI but the "Buy button" always come wrong like i put my mouse where it should be
but it only checks half of the button
it only checks the up corner of the button
this is the code:
i checked it a lot of times
and its keeps going wrong
but it only checks half of the button
it only checks the up corner of the button
this is the code:
GML:
if fala=2 || fala=4{if mouse_x>view_xview+576 && mouse_x<view_xview+896
&&mouse_y>view_yview+244&&mouse_y<view_yview+288{
draw_set_color(c_lime)
draw_rectangle(view_xview+576,view_yview+244,view_xview+896,view_yview+288,0)
draw_set_color(c_green)
draw_rectangle(view_xview+576,view_yview+244,view_xview+896,view_yview+288,1)
}else
{
draw_set_color(c_lime)
draw_rectangle(view_xview+576,view_yview+244,view_xview+896,view_yview+288,1)
draw_set_color(c_green)
draw_rectangle(view_xview+576,view_yview+244,view_xview+896,view_yview+288,0)}}
and its keeps going wrong