Fixed jumping hopefully

This commit is contained in:
Puppet committed 2025-10-12 20:08:55 -07:00
1 parent b297f07ed2
commit a573d74bbd
2 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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;