'How can I detect if a sprite is overlapping an image on Monogame XNA C#
I tried different ways of checking if a sprite is touching/overlapping an image using if statements but it doesn't seem to work and I have no idea why.
I have tried:
if (Sprite.Player.Intersects(flagTexture))
{
_game.ChangeState(new Gamewon(_game, _graphicsDevice, _content));
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
