We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0c29b4 + 738db14 commit df6da14Copy full SHA for df6da14
1 file changed
scripts/player.gd
@@ -34,7 +34,7 @@ const _PLAYER_ACTIONS = {
34
35
## How high does your character jump? Note that the gravity will
36
## be influenced by the [member GameLogic.gravity].
37
-@export_range(-1000, 1000, 10, "suffix:px/s") var jump_velocity = -880.0
+@export_range(0, 2000, 10, "suffix:px/s") var jump_velocity = 880.0
38
39
## How much should the character's jump be reduced if you let go of the jump
40
## key before the top of the jump? [code]0[/code] means “not at all”;
@@ -107,7 +107,7 @@ func _on_gravity_changed(new_gravity):
107
108
109
func _jump():
110
- velocity.y = jump_velocity
+ velocity.y = -jump_velocity
111
coyote_timer = 0
112
jump_buffer_timer = 0
113
if double_jump_armed:
0 commit comments