Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - alf.javier

Pages: [1]
1
Window / Problem with keyboard pressed
« on: March 24, 2014, 06:35:25 am »
In the game, the user can add money to his wallet. But when I press the key "C", the key are press many times, I want press only one time.

Quote
if (sf::Keyboard::isKeyPressed(sf::Keyboard::C))
      {
         creditos = creditos + 100;
      }

Can somebody help me with this problem?

Thanks.

Pages: [1]