projects
/
ScaryGame.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91458dd
)
enabled gravity!
author
Eduardo
<
[email protected]
>
Sun, 11 Feb 2024 16:51:21 +0000
(17:51 +0100)
committer
Eduardo
<
[email protected]
>
Sun, 11 Feb 2024 16:51:21 +0000
(17:51 +0100)
player/Player.gd
patch
|
blob
|
history
diff --git
a/player/Player.gd
b/player/Player.gd
index 66307752f69a8f988b9ad7d0cdcca19c966f81dd..676c3793eeec92c160338814a00f8429b5fb1f76 100644
(file)
--- a/
player/Player.gd
+++ b/
player/Player.gd
@@
-68,8
+68,8
@@
func _physics_process(delta):
target_velocity.x = direction.x * speed * speed_mod
target_velocity.z = direction.z * speed * speed_mod
-
#
if not is_on_floor():
-
#
target_velocity.y = target_velocity.y - (fall_acceleration * delta)
+ if not is_on_floor():
+
target_velocity.y = target_velocity.y - (fall_acceleration * delta)
velocity = target_velocity
move_and_slide()