Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float timer = 10;
- if (sf::Keyboard::isKeyPressed(sf::Keyboard::T))
- {
- clock.restart();
- timer = clock.getElapsedTime().asSeconds(); // start zegara
- pl1.action();
- }
- if (timer < 2)
- {
- oknoAplikacji.draw(pl1.getTalk());
- oknoAplikacji.draw(bar);
- timer = clock.getElapsedTime().asSeconds();// rysowanie i pobioeranie czasu na nast obieg
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement