Describe the bug
STEP 1: Create a new sprite
STEP 2: add PNG images for its first animation
STEP 3: Add different PNG images but with exactly the same name as the images in STEP 2
bug: if you add the images by clicking the “Add a sprite” Button, it will add images from STEP 2 animations, despite selecting different images
bug2: if you add the images by clicking the downwards pointing arrow and select “File(s) from your device”, It will create a new animation for each one of the images you added, all with the old images (from STEP 2)
Unfortunately, for at least the first item that is expected behavior.
Gdevelop generally expects your project to have a flat file structure, which means duplicate filenames are unsupported.
This is important because exported games have all of your assets thrown into one folder and compressed into the package (regardless of platform, outside of html export, which just throws the raw files into a single folder).
This means that even if you are using subfolders in your project folder (unsupported but works) you still cannot have duplicate filenames.
It makes sense that asset names can’t be duplicates, but I still feel like this behavior shouldn’t happen, its strange for a user to click an image “lets say a red square” and get a blue square in the scene instead, I feel like a prompt should pop up, the fact it can also create new animations is even more bizarre