Skip to content

Commit

Permalink
Fixed #1
Browse files Browse the repository at this point in the history
  • Loading branch information
henriiquecampos committed May 7, 2018
1 parent 1472cad commit 4ec8244
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.import/
assets/
6 changes: 3 additions & 3 deletions actors/player_kinematic_character.gd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extends "res://actors/platform_character/kinematic_character.gd"
extends "res://actors/kinematic_character.gd"

func _input(event):
match state:
Expand Down Expand Up @@ -38,7 +38,7 @@ func _input(event):
if event.is_action_released("jump"):
cancel_jump()
FALL:
if event.is_action_pressed("right") :
if event.is_action_pressed("right"):
direction = 1
velocity.x = walk(direction, in_jump_speed)
elif event.is_action_pressed("left") :
Expand All @@ -48,7 +48,7 @@ func _input(event):
velocity = stop()
elif event.is_action_released("left") and direction == -1:
velocity = stop()
if event.is_action_pressed("jump"):
if event.is_action_pressed("jump") and jumps > 0:
set_state(JUMP)

func _physics_process(delta):
Expand Down

0 comments on commit 4ec8244

Please sign in to comment.