Skip to content

Commit

Permalink
Add a comment for check_controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakarya committed Jul 2, 2024
1 parent 6a6de24 commit 6257f07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/fpc/character.gd
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func _ready():
check_controls()

func check_controls(): # If you add a control, you might want to add a check for it here.
# The actions are being disabled so the engine doesn't halt the entire project in debug mode
if !InputMap.has_action(JUMP):
push_error("No control mapped for jumping. Please add an input map control. Disabling jump.")
jumping_enabled = false
Expand Down

0 comments on commit 6257f07

Please sign in to comment.