Arreglado el problema con las plataormas verticales. Se iba un pixel

This commit is contained in:
2022-08-29 08:27:33 +02:00
parent 45592f16c3
commit f9482594ea
5 changed files with 7 additions and 7 deletions

View File

@@ -300,7 +300,7 @@ void Player::move()
// Dejarlo alineado con la plataforma
state = standing;
vy = 0.0f;
y = -h + map->getActorCollider(hookedOnMovingPlatform).y;
y = map->getActorCollider(hookedOnMovingPlatform).y - h;
x += map->getActorIncX(hookedOnMovingPlatform);
isOnMovingPlatform();
}