New answers tagged

0

If referring to the width/height of the mini map isn't working, you could try hard-coding in the parameters. Or (silly idea), you could create a blank, transparent object the size of the mini map and check that the mouse isn't touching that? Not a very efficient solution, but might get the job done for now.


0

Check your mouse XY is outside of the minimap space. Something like if (mouse_x > minimapWidth && mouse_y > minimapHeight) { // OUTSIDE MINIMAP: do input stuff using mouseXY } else { // INSIDE MINIMAP: do minimap stuff using mouseXY } I had a problem like this myself, but don't remember exactly if you have to subtract the minimap ...



Top 50 recent answers are included