Hello, i'm trying to make a very simple game in SFML, and i have a problem.
Whenever i try to create sf::Sprite for the class where all properties of Player (his sprite, health, speed, etc.) It gives me error.
int xspeed, yspeed;
sf::RenderWindow window(sf::VideoMode(800, 600), "Prince of Sandnigeria");
player.health = 100;
if (event.type == sf::Event::Closed)
The error is with player.entsprite.setTexture(texture) : "'player.Playerclass::entsprite' does not have class type"
I'd like to thanks in advance if anyone can give me a solution as to what am i doing wrong.