forked from team-sg/hero-mark-2
fix drowning always softlocking
This commit is contained in:
parent
8264c9c1b8
commit
48af9875b5
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func _ready() -> void:
|
||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
# snap sprite
|
# snap sprite
|
||||||
graphics.global_position = global_position.round()
|
sprite.global_position = graphics.global_position.round() + Vector2(0.0, -10.0)
|
||||||
# update transition guard properties
|
# update transition guard properties
|
||||||
# whether player can currently shoot an arrow
|
# whether player can currently shoot an arrow
|
||||||
var can_shoot = Game.arrows > 0 and get_tree().get_nodes_in_group("player_arrow").size() == 0
|
var can_shoot = Game.arrows > 0 and get_tree().get_nodes_in_group("player_arrow").size() == 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue