Have a read about how URLs are constructed in Defold, particularly this section:
Note that your last screenshot is not relevant. The Assets pane on the left is just a representation of the files on your computer. It is the structure in the Outline pane on the right that matters.
but its written out correctly as a url, no? if i put an incorrect URL it will say that the URL was not found, so why would it return a string instead of a number?
i origionaly moved it out of a folder called environment to the main folder before calling it ealier. I have just moved it back and tries to access it using the following:
No, as mentioned previously the folder structure (Asset pane on left) does not matter. It’s how the components and objects are deployed in the Outline pane (on the right) that matters. If you click on the component it should show you part of the URL (just not the collection).