extends Node2D var spawncount = 0 var horse_scene = preload("res://Scenes/horse.tscn") var horse_instance var mouse_position = Vector2.ZERO @export var ccVanilla = preload("res://Scenes/Cupcakes/cupcake.tscn") var ccvan var ccChocolate var ccchoc var randX var randY var ccSpawnRate = 10 func _ready(): horse_instance = horse_scene.instantiate() ccvan = ccVanilla.instantiate() add_child(horse_instance) add_child(ccvan) func _process(delta): mouse_position = get_global_mouse_position() horse_instance.position = mouse_position func spawnCupcakes(): pass func collectCupcakes(): pass func _on_play_area_body_exited(body): pass