Adjusted moving values and animations to make vesna not slide any more

This commit is contained in:
2025-08-02 15:32:13 +02:00
parent 8e0dced918
commit 0008b16d48
2 changed files with 22 additions and 15 deletions
@@ -53,6 +53,11 @@ public partial class PlayerMovement : CharacterBody2D
if (anyActionPressed)
{
if (currentVelocity.X != 0 && currentVelocity.Y != 0)
{
currentVelocity *= 0.7f;
}
Velocity = currentVelocity;
MoveAndSlide();
}