|
|
|
|
@ -202,12 +202,12 @@ func handle_sprite_orientation(): |
|
|
|
|
|
|
|
|
|
elif is_on_ceiling_only(): |
|
|
|
|
if velocity.x != 0: |
|
|
|
|
$oriented_container.rotation = 0 if (velocity.x > 0) else PI |
|
|
|
|
$oriented_container.rotation = 0.0 if (velocity.x > 0) else PI |
|
|
|
|
sprite.flip_v = velocity.x > 0 |
|
|
|
|
sprite.flip_h = false |
|
|
|
|
else: |
|
|
|
|
if velocity.x != 0: |
|
|
|
|
$oriented_container.rotation = 0 if (velocity.x > 0) else PI |
|
|
|
|
$oriented_container.rotation = 0.0 if (velocity.x > 0) else PI |
|
|
|
|
sprite.flip_v = velocity.x < 0 |
|
|
|
|
sprite.flip_h = false |
|
|
|
|
|
|
|
|
|
|