You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
599 B
GDScript

extends RigidBody2D
var speed = Vector2.ZERO
var horse = preload("res://Scripts/horse.gd")
@onready var playArea = $"../../PlayArea"
@onready var ccCol
var scorecard = preload("res://Scripts/varVar.gd")
var ccValue = 1
signal ccVanCollected()
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func _on_play_area_body_exited(body):
if body.get_parent() == $"../../Cupcakes":
emit_signal("ccVanCollected")
body.queue_free()
func _on_game_world_condensed_cupcake_1():
ccValue += 1