Dr_Nomz
Member
So I want to make a button appear according to the room view (so it fits nicely) and have a little highlight over it when I mouse over.
Problem is, I've tried just about every combination I can think of, and so far nothing's worked.
Room view code (works fine):
Rectangle code:
So that all goes into the draw event, but nothing I've done seems to make the highlight function correctly. See, instead of appearing over the sprite nicely, it seems to draw it self and function in a completely different area, and then a click event afterwords does nothing.
What I want is for the highlight to draw over the sprite where it's located on the screen.
Problem is, I've tried just about every combination I can think of, and so far nothing's worked.
Room view code (works fine):
Code:
var x1,x2,y1,y2;
x1 = view_xview[0];
x2 = x1 + view_wview[0];
y1 = view_yview[0];
Code:
if (abs(mouse_x - x) < 50) && (abs(mouse_y - y) < 50) && showInv == true{
draw_set_color(c_white);
draw_rectangle(x-47,y-47,x+46,y+46,0)
What I want is for the highlight to draw over the sprite where it's located on the screen.