0 Members and 2 Guests are viewing this topic.
if (mySprite.GetSubRect().Contains(mousePos.x, mousePos.y){ //...}
I may be incorrect but I think you will have to offset the subrect with the sprites position for this to work. The sprite's subrect is only relative to itself, not the world/screen.