Fix inputs on player CollisionShape2D node causing a crash (#334)

* Fix inputs on player CollisionShape2D node causing a crash

* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian MurgiaandStraToN authored and GitHub committed 2021-07-28 15:38:54 +02:00
1 parent 7f8555f6a4
commit 387d20ba92
2 files changed
+7

No files matched your search

@@ -17,6 +17,12 @@ func _init():
is_movable = true
# Ready function
func _ready():
# For ESCPlayer, avoid the CollisionShape2D used for movement to catch inputs
disconnect("input_event", self, "manage_input")
# Return the camera position if a camera_position_node exists or the
# global position of the player
func get_camera_pos():