(1) Re-show the sprite(s) I want to keep every time I want to keep them on-screen during a "show" background change.
- Pros: I'm pretty sure I'll have less sprites staying on screen than not, although that may change as I write more of my story.
Cons: It requires me paying very careful attention to if a character is supposed to stay on screen or not, lest the scene change and suddenly an invisible person is talking. I may also run out of layers, since "show" doesn't wipe the slate, and the character may not come up on screen regardless.
- Pros: I want to hide all characters who disappear during scene changes before changing the background anyways, since I think it looks nicer, so that's not an issue. This method also feels more "pythonic" (or ren'pythonic? More conceptually accurate?), as it's not me constantly overwriting a sprite, but rather adding another level of organization.
Cons: Currently, this requires me adding "onlayer bg" to each and every scene change, since the background layer needs to be before the sprites so that it doesn't cover them:This, however, seems extremely tedious, and along the same lines as before, I have to make sure that I type this every time it's required, or sprites will stay on screen when they're supposed to leave.Code: Select all
$ config.layers = ['bg', 'master', 'transient', 'screens', 'overlay']
I don't know if this is possible, although it would be nice, since it feels both code-efficient and logical. If not, do you think one of the two methods I mentioned before is better than the other? Or is there some other method that is better? For now I'll be hard-writing in sprites staying on screen just because it's easier, although that may change once I've gotten more progress.