|
|
|
@ -196,6 +196,7 @@ func handle_sprite_orientation(): |
|
|
|
if velocity.x != 0: |
|
|
|
if velocity.x != 0: |
|
|
|
$oriented_container.rotation = 0 if (velocity.x > 0) else PI |
|
|
|
$oriented_container.rotation = 0 if (velocity.x > 0) else PI |
|
|
|
sprite.flip_v = velocity.x < 0 |
|
|
|
sprite.flip_v = velocity.x < 0 |
|
|
|
|
|
|
|
sprite.flip_h = false |
|
|
|
|
|
|
|
|
|
|
|
func on_enter_swim_state(): |
|
|
|
func on_enter_swim_state(): |
|
|
|
gravity = WORLD_GRAVITY / 2 |
|
|
|
gravity = WORLD_GRAVITY / 2 |
|
|
|
|