Hi there again!
I am currently adding a menu scene to my test game and I'm having already trouble, even though I want to add even two more scenes on top of that.
I have the problem that the sprites of the one scene remain in the other scene and are still being depicted.
Calling "Scene_cleanup()" doesn't do anything. Even when I set every sprite of the scene to invisible, they are still being depicted.
So I'm having my "game scene" and my "menu scene". When I changed the scene from "game" to "menu" it actually worked fine. I just had to call GameScene_cleanup() to clear the sprites. But now that I start the game with the menu scene first, the sprites are overlapping when changing back to the "game scene".
The entire script is quite long and probably hard to read, so I tried to include only the parts that I think could be relevant to this problem. And hoping that it's enough to detect the problem:
//loading menu scene and it's elements in the beginning:
//DEFINING WHICH SCENE IS RUNNING:
//MAIN GAME LOOP:
print("is menu on?"+STR(MENU))
LoadPond()//loadpond function loads animations and sounds for the game scene
//all the main game function etc. are here
When I press the virtual "Play" button, the game scene (pond.scene) starts running, but the old sprites remain for some reason.
Thanks for any tips in advance.