+1 vote

Hi there. I am a first time user of Godot, trying to follow the initial 'your first game in Godot' tutorial. I have reached this point:

"Drag Mob.tscn from the “FileSystem” panel and drop it in the Mob property under the Script Variables of the Main node."

But without an image or more detail I'm actually not clear what this step is asking for? Is it asking for me to drop the mob.tscn file onto the script itself, underneath the public PackedScene Mob; variable? (If I do this, it pastes "res://Mob.tscn" into the script. Doesn't seem right. Could someone assist? I'm keen to try out this first tutorial :)

Only other bit of relevant info would be I'm using the C# code samples in the tutorial as I'm a C# developer.

asked Nov 6, 2018 in Projects by jamesmatson (13 points)

1 Answer

+3 votes

just before where it says that you should drag mob.tscn it asked you to make a new script in a scene called Main right?

the line of code in the main script that says "export (PackedScene) var Mob"
make it exposed to the inspector, and whatever scene you put in there you can create new instances from that object (or scene) in the code. ( i guess you will use this later in the tutorial)

Anyway in the picture below, you can see the inspector tab and under it a property called Mob, you drag the mob.tscn to where it says [empty]

answered Nov 8, 2018 by Christoffer (142 points)

Ty, helps a lot!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.