When working with scenes, the name of the first scene is currently always identical to the file name.
This causes problems as soon as you save the snap file under a new name (save as). All references to the first scene in a “switch to scene” block then become invalid and must be adjusted manually.
I therefore suggest being able to choose the name of the first scene independently of the file name, so that renaming the file has no effect on the functionality of the scenes.
To make a comparison: In a sprite, the names of the costumes are independent of the name of the sprite. And that is exactly how it should be. It wouldn't make sense if the first costume always had the same name as the sprite and was renamed with the sprite - because then you would always have to adapt every “change costume” block when you change the name of the sprite. Back to the scenes: Here is currently exactly this absurd behavior. The first scene should be semantically independent of the file name.
Implementation note: While you can delete non-first scenes via the right-click menu, it would of course not make sense to allow the first scene to be deleted as well. In this sense, the first scene should continue to have a special role, i.e. it must always exist. But renaming the first scene and detaching it from the file name would be a significant improvement.
They are technically reporting a bug, since it causes issues within Snap!.
Also, welcome to the community!
I wasn't aware of this issue previously, since I've never found a need to use scene blocks yet, but I hope Jens or BH see this soon, this is a pretty inconvenient feature.
It probably won't be one of their priorities, though.
However, there might be ways to get around it.
The first thing off the top of my head was just to edit the XML and rename the first scene to whatever it was named previously, but I don't even know if that'll work.
Thanks for the suggestion, specialred. I have had a look at the xml file.
Indeed, the xml file contains a tag “project name=” at the very beginning and a tag “scene name=” for each scene, especially for the 1st scene. This is how it should be.
However, if I change the name of the 1st scene and all references pointing to the 1st scene in the xml file and then reopen the file in Snap, the displayed file name has also changed; it is now the same as the name of the 1st scene.
So although the xml file has a clean structure, there still seem to be remnants in the Snap code from the time when there were no scenes, i.e. when the program itself was the 1st scene.
In this respect, the forum category Bug seems to me to be correct. I also assume that fixing this bug will not cause a lot of effort and hope that it will be included in one of the next versions.
Yes, it's only your opinion and feature request, but not a bug to be reported.
The slight bug or misfeature is that there, sometimes, is a non-functional icon near the scene name.
I have never noticed this bug before, and I agree that this should be fixed in some way. If Jens doesn't want to make the first scene separate from the project title, it should at least change the name of all the scene blocks that reference the first scene when you change the project name or use save as.