final tuto movement
This commit is contained in:
@@ -1090,7 +1090,8 @@ public partial class PlayerController : CharacterBody3D,
|
||||
{
|
||||
if (MantleSystem.IsMantlePossible && IsPlayerInputtingForward())
|
||||
{
|
||||
_bufferedAction = BufferedActions.MantleDash;
|
||||
// _bufferedAction = BufferedActions.MantleDash;
|
||||
_canDash = true; // Restore dash ability
|
||||
_playerState.SendEvent("mantle");
|
||||
}
|
||||
}
|
||||
@@ -1284,12 +1285,12 @@ public partial class PlayerController : CharacterBody3D,
|
||||
{
|
||||
if (IsTryingToMantle()) _playerState.SendEvent("mantle");
|
||||
|
||||
// if (ShouldStartWallRun())
|
||||
// {
|
||||
// SetVerticalVelocity(WallRunUpwardVelocity);
|
||||
// _playerState.SendEvent("wall_run");
|
||||
// return;
|
||||
// }
|
||||
if (ShouldStartWallRun() && Velocity.Y < WallRunUpwardVelocity)
|
||||
{
|
||||
SetVerticalVelocity(WallRunUpwardVelocity);
|
||||
_playerState.SendEvent("wall_run");
|
||||
return;
|
||||
}
|
||||
|
||||
// Update horizontal velocity
|
||||
var horizontalVelocity = ComputeHVelocityAir(delta);
|
||||
|
||||
Reference in New Issue
Block a user