Merge pull request 'Added grassy tiles' (#3) from feat-procedural-gen into main
Release / Export Game (push) Successful in 1m47s
Release / Export Game (push) Successful in 1m47s
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -151,7 +151,7 @@ public partial class PlayerPhysicsController : CharacterBody2D {
|
||||
vely *= 1/4f;
|
||||
}
|
||||
|
||||
if (Input.IsActionJustPressed("turn_back") && vely > 0) {
|
||||
if (Input.IsActionJustPressed("turn_back") && vely > 0 && velx != 0) {
|
||||
var side = velx > 0 ? PredictiveCollisions.Location.BottomRight : PredictiveCollisions.Location.BottomLeft;
|
||||
if (Predictor.AnyHit(side) && !this.IsOnWall()) {
|
||||
EmitSignal(SignalName.OnTurnbackJump, true, this.IsOnWall());
|
||||
|
||||
Reference in New Issue
Block a user