Ajout du sprite du robot
This commit is contained in:
@@ -35,7 +35,11 @@ func _process(delta: float) -> void:
|
||||
planting.start(PLANTING_TIME)
|
||||
MoveState.PLANTING:
|
||||
wanderer.move = false
|
||||
|
||||
|
||||
if target_pos.x > position.x:
|
||||
$AnimatedSprite2D.flip_h = false
|
||||
else :
|
||||
$AnimatedSprite2D.flip_h = true
|
||||
|
||||
func go_to(new_target_pos: Vector2):
|
||||
state = MoveState.MOVING
|
||||
|
||||
Reference in New Issue
Block a user