extends AnimatedSprite export var speed = Vector2(100,0) # Called when the node enters the scene tree for the first time. func _physics_process(delta): position += speed * delta if position.x > 300: position.x = 0 if position.x < 0: position.x = 300 if position.y > 252: position.y = 0 if position.y < 0: position.y = 252