Adjusted moving values and animations to make vesna not slide any more
This commit is contained in:
@@ -53,6 +53,11 @@ public partial class PlayerMovement : CharacterBody2D
|
||||
|
||||
if (anyActionPressed)
|
||||
{
|
||||
if (currentVelocity.X != 0 && currentVelocity.Y != 0)
|
||||
{
|
||||
currentVelocity *= 0.7f;
|
||||
}
|
||||
|
||||
Velocity = currentVelocity;
|
||||
MoveAndSlide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user