0

I'm new to Godot so I'm sure I did something wrong but I can't figure out what it could be. I created a scene "piece" and then I created 8 scenes which all inherit from piece. These are blue_piece, green_piece, etc. So far, so good.

Now, I created a script and attached it to piece. The code for the piece is as follows:

extends Node2D

@export var color: String = ""

func _ready() -> void:
    pass
    
func _process(delta: float) -> void:
    pass

When I look at piece in the Inspector I see "Color" - great! It's listed under the script name.

When I look at blue_piece or green_piece, etc in the Inspector I do NOT see "Color"

UI https://ibb.co/8DXn4mvT

Where am I going wrong?

1 Answer 1

0

Select the Node2D and not the Sprite2D. I solved it finally.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.