Fixed jumping hopefully
This commit is contained in:
1 parent
b297f07ed2
commit
a573d74bbd
2 files changed
+5
-5
No files matched your search
+3
-3
@@ -34,11 +34,11 @@ public partial class Player : Node2D {
|
||||
}
|
||||
}
|
||||
|
||||
if (VelocityY < 0.3f) {
|
||||
VelocityY += Globals.Gravity;
|
||||
if (true) {
|
||||
VelocityY += Globals.Gravity * (float)delta;
|
||||
}
|
||||
|
||||
Pos.Y += VelocityY;
|
||||
Pos.Y += VelocityY * (float)delta;
|
||||
|
||||
if (Pos.Y > 976) {
|
||||
Pos.Y = 976;
|
||||
|
||||
Reference in new issue
Block a user