Hi !
I am a beginner in Game Programming and I have got a problem with "Keyboard::isKeyPressed"
I am doing this :
if(Keyboard::isKeyPressed(Keyboard::Return) && curseur==0)
gameState=INTRO;
And in my 'INTRO' loop, i have this :
if(Keyboard::isKeyPressed(Keyboard::Return))
gameState=JEU;
The problem is when I press Return to enter the INTRO loop, I am entering directly in my JEU loop.
I know i could just use an other key but I don't like this solution