godot 4.3
extends Control
@onready var tea_image = $Tea_Done # Replace with your actual image node
@onready var coffee_image = $Coffee_Done # Replace with your actual image node
@onready var boiling_sound = %Boiling
@onready var water_sound = %Water
var ingredients: Dictionary = {
"coffee": 0,
"tea": 0,
"milk": 0,
"sugar": 0,
}
var drinks = {
"Coffee": ["Coffee", "Sugar", "Milk"],
"Tea": ["Tea", "Sugar", "Milk"]
}
func _on_tea_pressed() -> void:
pass # Replace with function body.
I’m just not sure how to code this, I want ingredients to be able to be selected and once the right combination of ingredients is selected you can brew them at the coffee machine to get a drink. Then the customer gives money & satisfaction points and then the next customer comes repeat.
I cannot find any tutorials on this and this is how far im able to get on my own.
Does anyone know how i can manage this?