Hello,
I can't make a function "GetSprite" inside of my class somehow...
Caracter.H
private: int Max_Hp;
int Current_Hp;
int Max_Mana;
int Current_Mana;
sf::Sprite Sprite;
public:
sf::Sprite GetSprite();
Caracter.cpp
sf::Sprite GetSprite();
{
return Sprite;
}
there is an error on the "return Sprite" line with the following:
|134|error: `Sprite' was not declared in this scope|
It says it doesn't recognize it, but if I use ''Sprite.something" on any other function inside the class it works.
I am guessing syntax must be incorrect near the bold text. Any help?