0 Members and 1 Guest are viewing this topic.
sf::Vector2i pixelPos = sf::Mouse::getPosition(window); if ( pixelPos.x > 378 && pixelPos.x < 611 && pixelPos.y > 385 && pixelPos.y < 490 ) { window.draw(spritePlay); } else if (pixelPos.x > 299 && pixelPos.x < 704 && pixelPos.y > 505 && pixelPos.y < 623 ) { window.draw(spriteDontPlay); } else { window.draw(sprite); }