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 Murgia
2021-07-28 15:38:54 +02:00
committed by GitHub
parent 7f8555f6a4
commit 387d20ba92
2 changed files with 7 additions and 0 deletions

View File

@@ -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():

View File

@@ -405,6 +405,7 @@ Makes the `player` walk to the position `x`/`y`.
## Dialogs
Dialogs are specified by writing `?` with optional parameters, followed by a list of dialog options starting with `-`. Use `!` to end the dialog.