COMMUNITY

Mouse-Hitbox


#1

Hey guys,
actually I am working on a Project, in wich i use some tiles(like a tilegrid). So I worked with FlxG when I made the Mouse-actions like:

if ( FlxG.mouse.overlaps(this)&&FlxG.mouse.pressed) //this is the tile with x and y position
{
this.loadgraphic(…)
}

But the result was a little bit confusing:
Instead of only the overlapped tile changed its graphic, the tiles left, above and the upper left changed their graphic.
So my Question is : Ís there a hitbox for Flxg Mouse that is too big, and If so, how can I fix this?

Thanks for Reply
BiosCracker


(Kevin Leung) #2

This question should go to HaxeFlixel’s forum. http://forum.haxeflixel.com/