Thank you for your replys, its all working except when I try to call the thread in class "PC" I have the following error:
C:\Users\Steven\Desktop\RPG\PC.cpp|226|error: no matching function for call to `sf::Thread::Thread(void (PC::*)(void*, int), short int&)'|
Code is:
void PC::Handle_event(sf::Event Event, sf::RenderWindow &App)
{
sf::Thread Thread(&PC::Start_Animation, Index); <----------------------
}
void PC::Start_Animation(void* UserData, int Index)
{
Attacks[Index]->Next(Sprite,Facing);
}
At first I tryed to remove the PC:: in front of the function but it told me to put it back (meaning sf::Thread Thread(&Start_Animation, Index); doesn't work either)
What am I missing here?