Hello,
so, say I have a strategy game where multiple resources are defined. Stone and gold.
I have a single scene that covers both that has an enum exported where you can choose if the resource is stone or gold. Based on what I select in editor I want to change a sprite and label IN THE EDITOR, not in game. Is something like that possible in godot?
Example script attached to the Resource scene:
extends StaticBody2D
enum TYPE {stone, gold}
export (TYPE) var type = TYPE.stone
func _process(_delta):
if stone:
# Show stone
if gold:
# Show gold