Some sprite resourses are not in assets folder. is that bad?

I noticed that not all the sprites for the game are in the assets folder.

The sprite for the cannon and cannonball are outside the asset folder, but still in the project folder in general.

This happened because I imported them from a different project. the resources page for gdevelop lists them as cannon.png and cannonball.png, even though all the other sprite resources don’t have .png in their name.

Will this become a problem? it so, then how do I move them to the asset folder without screwing anything up?

3 Likes

This won’t cause any issues with your game, but if you care about sorting and keeping all your assets in different sections, it can be annoying.

1 Like

ok good. I was really worried if it would effect packaging the game for release.

Should be fine, I was able to package games with more files not in the asset folder than in it. Very messy though.

I’d really like to know is this the way it’s meant to be? If I create an image in Piskel, it goes into the assets folder but if I import it (as mentioned above), it goes in the project folder.

Is this intentional? I’d really prefer that imported assets went into the assets folder by default.

3 Likes

I also think that it would make more sense if things went straight into assets!
the way that resources are managed in gd feels clunky to me.

3 Likes

The assets folder actually isn’t created when you create a project. It gets added whenever an asset is created. There have actually been some cases in which I’ve had to create the asset folder myself to import sprites made with aseprite.

@Bubble @petlimpet

is it only if you use piskal that it’s created?

I sure there are more instances, like using jfxr.

I did a test and yes, you’re right. I’m pretty sure there was no assets folder when I started with GDevelop so I tried to find in release notes on github when the assets folder was introduced to see what they said it was for and what it’s meant to include. But I couldn’t find any mention of it. I did find a reference in the forum from early 2022 that there was no assets folder though.

I think I saw in the release notes that in the last year or two they made it that assets from the assets store go in the assets folder too. I don’t really look at the assets store so I can’t confirm it.

Should there be a feature request for imported assets to go in the assets folder? I could do one, if the OP or anyone else doesn’t feel like it.

What i’d quite like to see is it auto generate an asset folder that contains an images folder, a sound folder, an extensions folder and a 3d models folder…but that might be asking a bit much there

It’s all about how the developer want to sort their folders. Automating folders may make some people happy, but it can also be annoying to others.
Although, it can always be an option.

maybe - I’ve never put the effort that i should have done into keeping a tidy project. I think if there was an auto folders option …i would click it!

1 Like

The only thing I do to keep projects tidy is folders inside GDevelop!

1 Like