This commit is contained in:
marti.lloveras 2017-01-21 15:41:45 +01:00
parent 17f1086ce4
commit bfa92e8b43
2 changed files with 2 additions and 1 deletions

View file

@ -27,7 +27,8 @@ void Character::update(float deltaTime){
if (timestamp >= frameTime){
timestamp = 0;
std::cout << "PLAYER" << playerNum << ": indexX: " << indexX << ", idleFrame: " << idleFrame << std::endl;
//std::cout << "PLAYER" << playerNum << ": indexX: " << indexX << ", idleFrame: " << idleFrame << std::endl;
sf::IntRect rect = sf::IntRect(indexX*width, indexY*height, width, height);
setTextureRect(rect);