** I cannot move the character from A to B in the path as shown in the image, it directly slides from A to B instead. what changes should I made if the image should follow the same path as shown in the image.Below is the code I have written,Please correct my code**
extends AnimatedSprite
var Charspeed = 1
var AtA = false
var AtB = false
var AtC = false
onready var p = get_parent()
func _ready():
pass # Replace with function body.
func _process(delta):
if not At_A and position.x < p.get_node("Point A").position.x:
position.x += Char_speed
if not At_B and position.y < p.get_node("Point B").position.y:
position.y += Char_speed
if not At_C and position.x < p.get_node("Point C").position.x:
position.x += Char_speed
See the Image for better Understanding