Better mouse overlapping function for CoolUtil#813
Better mouse overlapping function for CoolUtil#813Bitto1070 wants to merge 3 commits intoCodenameCrew:mainfrom
Conversation
Here is a better description: Implements a CoolUtil function that allows you to properly check if the Mouse overlaps an object on any camera layer, properly. |
|
i meant for the actual function in the code but thanks lj |
|
you should define the type of posthing as FlxPoint and also wouldn't it be better if it used the sprite's camera by default rather than the first camera in the list? |
somehow i never thought about doing this, let me test and push it |
thinking of not even allowing disjointed overlap checks keeping it for now
Reason why I bought it up is I have similar code running on some of my mods as a public function in global.hx that check for the sprites camera Having it in coolutil or just as FlxG.mouse.overlaps would be a huge help too |
its FlxG.mouse.overlaps, but working on objects in cameras that arent FlxG.camera at scroll 0
probably needs a better description but thats the best i could come up with