• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Shop Ui problem

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:
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)}}
i checked it a lot of times
and its keeps going wrong
 
Top