diff options
Diffstat (limited to 'player.gd')
| -rw-r--r-- | player.gd | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -17,6 +17,12 @@ var coyote: int = 0 # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. + +func get_facing() -> int: + if $AnimatedSprite2D.flip_h: + return -1 + else: + return 1 # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(_delta: float) -> void: |
