|
@@ -37,11 +37,12 @@ func _process(delta):
|
|
|
$AnimatedSprite2D.flip_h = velocity.x < 0
|
|
|
elif velocity.y != 0:
|
|
|
$AnimatedSprite2D.animation = &"up"
|
|
|
- $AnimatedSprite2D.flip_v = velocity.y > 0
|
|
|
- $Trail.rotation = PI if velocity.y > 0 else 0
|
|
|
+ rotation = PI if velocity.y > 0 else 0
|
|
|
+
|
|
|
|
|
|
func start(pos):
|
|
|
position = pos
|
|
|
+ rotation = 0
|
|
|
show()
|
|
|
$CollisionShape2D.disabled = false
|
|
|
|