How do I add a resource to a project?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Martian

I am a new Godot user. Trying to work through the dodge assets project tutorial, but it assumes I have the art. Any clues how to add the art to the resources?
Note: I am NOT a programmer, but I did go to MIT!

:bust_in_silhouette: Reply From: kidscancode

At the beginning of the tutorial, you are prompted to download the art assets and unzip them in your new project folder:

The direct link to the assets:

Been there, done that. Still can’t get the art into resources.
Plus it doesn’t answer the more general question of how to get at resources when I’m working on my own games.

Martian | 2018-03-09 20:26

Maybe I don’t understand your question. “get the art into resources” is a little unclear. Art is a resource.

You’ve downloaded the assets and unzipped them in your project folder. Can you see the “art” folder in the FileSystem dock on the left? Click on it and you’ll see its contained image files.

To use any resource, you can drag it from the FileSystem dock into the current object’s relevant property in the Inspector. For example, if you’re working with a Sprite, you can drag any image resource and drop it in the Sprite’s “Texture” property. In the tutorial, you drag the images and drop them in the AnimatedSprite’s SpriteFrames panel.

Is there some other way you want to “get at” resources?

kidscancode | 2018-03-09 20:40

Sorry if I’m unclear. Not a programmer.

I don’t see the art in the FileSystem dock & nothing I have tried gets it in there. I have tried typing in the filepath, but I can’t ever see the file contents or connect to the file. This is very frustrating! There are no clues anywhere as to what I’m supposed to do!

This is an issue for when I want to put in my own art.

Martian | 2018-03-09 21:14

This doesn’t really have anything to do with being a programmer. Right now we’re talking about putting files in the right place on your computer.

Open your file manager (“Finder” in MacOS or “My Computer” in Windows) and navigate to the folder you made when you clicked “New Project” in Godot. That folder is where you need to put the art files you downloaded. Move them from your “Downloads” folder or wherever you have them now.

A Godot project can only see the files that are in the project folder. Once they are in there, they will show up in the FileSystem dock like so:

“res://” refers to the root of the project folder.

kidscancode | 2018-03-09 21:37

OK turns out the Project folder was not where the zip files were unzipped! I moved the resources over & now they show up.

Thanks a bunch! Sorry for being so thick-headed.

Martian | 2018-03-09 21:52

Great! I had a feeling it was something like that. If you’re not careful, unzip can dump the files somewhere you don’t expect.

Anyway, now you can move forward with the tutorial, and any of your own art you want to use, just copy it into the project folder. :slight_smile:

kidscancode | 2018-03-09 21:54