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:
@@ -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():
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user