This is a complicated problem I've run into, so I'm going to try and be as specific as possible.
Here goes...
Basically, I found a strange issue with exiting the load screen from the main menu, or pressing the Esc to go back to the title. This issue came about with the addition of two scripts: rbahamut's "Custom intro before title screen" script and Acezon's "Map Title Screen". I created the first intro map, which contained my logo, which could be skipped with the space bar, or watched all the way through. Either way, the end or the skip would trigger a self switch, which would automatically (but unnoticeably) transport the player to the map which would appear in the title, a simple black background. before the return to title command was finished, just before the fade in, a parallel process would handle creating a simple snow weather effect and, also, a simple strip of character movement. Using Galv's Move Route Extras script, I created the move route so that an event in the middle of the screen would immediately disappear (before the title was finished fading in, so as not for it to be noticed) and, after about 60 frames, fade back in slowly, revealing the sprite of a man stepping (not walking) and occasionally pausing to look around. (This stepping/pausing was handled within his own event processing.)
Now, this is where it got complicated.
With the way these events are set up allowed issues to be created in the save screen, which is currently using Ace Save Engine. When "Continue" is selected, the title fades out, and the screen fades in on the save engine. This is good. Unfortunately, when you press "Esc" and it returns you to the title screen, the stepping event will appear briefly before disappearing, and then fades back in like when you first enter the title screen. This is buggy, and I don't like it. Not only that, but the Weather Effects happen again too, seeming absent briefly before starting up.
So, this is what I'm asking:
Is it possible to make escaping the Load Screen the same as when you enter it? A simple fade-out, load title, fade-in would probably give the events on the Title Map enough time to get started. I would have figured this out myself, but I can't seem to find where the "Esc" command is stored. Even then, I'm not sure how I would have done it.
This was typed up somewhat quickly: I have to be somewhere very soon. But if anyone needs any more clarification, I'm perfectly happy to give it. I just really want to find an answer to this annoying little problem! ^^
EDIT:
All right, I finally figured it out! Apparently I had failed to check the SceneManager, which I probably should have searched in the first place, but hey, when you're tired, you're tired. 🙂
For anyone who is interested or is having a similar issue: First, jump into the SceneManager once you're in your scripts, and locate "Return to Caller". In return to caller, you're going to want to replace what is inside with this snippet of code:
If you don't have that if/else statement, specifically checking to see if you are on the Load Scene, it will fade every time you use ESC to return to a scene. If you only want this to happen for a specific scene, as I did, the "if" is essential.
After you do this, your plans should work!
This topic may be closed now. 🙂
Here goes...
Basically, I found a strange issue with exiting the load screen from the main menu, or pressing the Esc to go back to the title. This issue came about with the addition of two scripts: rbahamut's "Custom intro before title screen" script and Acezon's "Map Title Screen". I created the first intro map, which contained my logo, which could be skipped with the space bar, or watched all the way through. Either way, the end or the skip would trigger a self switch, which would automatically (but unnoticeably) transport the player to the map which would appear in the title, a simple black background. before the return to title command was finished, just before the fade in, a parallel process would handle creating a simple snow weather effect and, also, a simple strip of character movement. Using Galv's Move Route Extras script, I created the move route so that an event in the middle of the screen would immediately disappear (before the title was finished fading in, so as not for it to be noticed) and, after about 60 frames, fade back in slowly, revealing the sprite of a man stepping (not walking) and occasionally pausing to look around. (This stepping/pausing was handled within his own event processing.)
Now, this is where it got complicated.
With the way these events are set up allowed issues to be created in the save screen, which is currently using Ace Save Engine. When "Continue" is selected, the title fades out, and the screen fades in on the save engine. This is good. Unfortunately, when you press "Esc" and it returns you to the title screen, the stepping event will appear briefly before disappearing, and then fades back in like when you first enter the title screen. This is buggy, and I don't like it. Not only that, but the Weather Effects happen again too, seeming absent briefly before starting up.
So, this is what I'm asking:
Is it possible to make escaping the Load Screen the same as when you enter it? A simple fade-out, load title, fade-in would probably give the events on the Title Map enough time to get started. I would have figured this out myself, but I can't seem to find where the "Esc" command is stored. Even then, I'm not sure how I would have done it.
This was typed up somewhat quickly: I have to be somewhere very soon. But if anyone needs any more clarification, I'm perfectly happy to give it. I just really want to find an answer to this annoying little problem! ^^
EDIT:
All right, I finally figured it out! Apparently I had failed to check the SceneManager, which I probably should have searched in the first place, but hey, when you're tired, you're tired. 🙂
For anyone who is interested or is having a similar issue: First, jump into the SceneManager once you're in your scripts, and locate "Return to Caller". In return to caller, you're going to want to replace what is inside with this snippet of code:
Code:
def self.return
if SceneManager.scene_is?(Scene_Load)
Graphics.fadeout(1000 * Graphics.frame_rate / 1000)
@scene = @stack.pop
else
@scene = @stack.pop
end
end
If you don't have that if/else statement, specifically checking to see if you are on the Load Scene, it will fade every time you use ESC to return to a scene. If you only want this to happen for a specific scene, as I did, the "if" is essential.
After you do this, your plans should work!
This topic may be closed now. 🙂