Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. float timer = 10;
  2. if (sf::Keyboard::isKeyPressed(sf::Keyboard::T))
  3. {
  4. clock.restart();
  5. timer = clock.getElapsedTime().asSeconds(); // start zegara
  6. pl1.action();
  7. }
  8. if (timer < 2)
  9. {
  10. oknoAplikacji.draw(pl1.getTalk());
  11. oknoAplikacji.draw(bar);
  12. timer = clock.getElapsedTime().asSeconds();// rysowanie i pobioeranie czasu na nast obieg
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement