Evented title screen w/ pictures - Problem with commands

Hello everyone!


I wanted to work in my project, and I tried to make an evented title screen. I used a plugin to skip the title and make my own screen, and I tried to event something basic: The name of the game, with below it three commands (Start, Continue and Option). Each command would zoom when it was selected, and deozom when it wasn't. I took the most simplistic way possible, by using a variable who cycled between 0, 1 and 2 when the Left and Right buttons were pressed. 0 is Start, 1 is Continue and 2 is Options. As for the pictures, 3 is Start, 4 is Continue and 5 is Options.


However, I encountered a problem. I playtested the game, and apparently I can't go to 2 (Options), and the Right Button doesn't work (I hear the sound effect I put into the event, but the variable doesn't change). I checked both of the events I used and I don't believe I made a mistake... Did I overlooked something?



I'm sending three screens: The first one shows my first event, were everything is initialized (Put all the pictures here, then erase the event). The second and third ones are from the second event, where I have everything related to the commands.
I hope someone will find what I did wrong! (Again, I'm a bit sleepy so maybe I made a huge mistake that I don't see...)


Thanks!


Help1.png


Help2.png


Help3.png
My guess is that it has something to do with the Wait 60 Frames.  When checking for left button, you only do the Wait after doing all the tests, but when checking for right button, you do the wait within each test.  I'd get rid of that and do it at the end, like the other, and see if it makes a difference.


When you say you can't go to 3, is that when pressing EITHER button?  Or can you do it with the left button but not the right?
I'm going to suggest an alternative, that might be more simple for you, though maybe there's some reason it wouldn't work for you that I'm missing, in which case, feel free to say so.


I made a false title, similar to how you started yours, by skipping the title screen. I used an image as a parallax background, that had all the visual stuff I needed on it. Then, I used events over that (with no graphics) that used script calls to do what was needed.

Spoiler
sF8nA3B.png



Perhaps you could do something similar and for the zoom effect, instead of using the If statements, just put each one into the individual events over the command. Now, where I'm not sure it would work is if you called pictures for each command and then used the events. I don't remember how events and pictures layer or if there's a way to layer them and still use the events.


If I'm way off here, just ignore me.
My guess is that it has something to do with the Wait 60 Frames.  When checking for left button, you only do the Wait after doing all the tests, but when checking for right button, you do the wait within each test.  I'd get rid of that and do it at the end, like the other, and see if it makes a difference.


When you say you can't go to 3, is that when pressing EITHER button?  Or can you do it with the left button but not the right?



I changed the Waits, and nothing changed. :/.


I made new tests, and apparently I can go to "Continue" by pressing left on "Start" : Pressing right don't do anything when Start is highlighted. I CAN use the right button when "Continue" is chosen, but it brings me to "Start" instead of selecting "Options". In short : I can't go to "Options", no matter what I do.


Sorry, that's pretty hard to explain.


Apparently, it's not a display problem with the pictures : When I check in the debug mode, the variables are linked with the choice selected, and when I force the variable to be 2... It goes back to 0. What?

I'm going to suggest an alternative, that might be more simple for you, though maybe there's some reason it wouldn't work for you that I'm missing, in which case, feel free to say so.


I made a false title, similar to how you started yours, by skipping the title screen. I used an image as a parallax background, that had all the visual stuff I needed on it. Then, I used events over that (with no graphics) that used script calls to do what was needed.

Spoiler



Perhaps you could do something similar and for the zoom effect, instead of using the If statements, just put each one into the individual events over the command. Now, where I'm not sure it would work is if you called pictures for each command and then used the events. I don't remember how events and pictures layer or if there's a way to layer them and still use the events.


If I'm way off here, just ignore me.



That's a great idea, but unfortunately I don't think it would work here. My title screen is pretty heavy with pictures (I only put half of them for now), and it would be pretty complicated to do so with this system. I keep this solution in mind, however. Thanks!
When I check in the debug mode, the variables are linked with the choice selected, and when I force the variable to be 2... She goes back to 0. What?



Ah, of course.


Your conditional branches are not nested.  So it does the first test to see if the choice is 2, and if it is, it changes it back to 0.  Then it does the next test to see if the choice is 1, which it isn't so that's skipped.  Then it does the third test to see if the choice is 0, which it is, because you just changed it to 0.  So it changes it to 1.


Just nest your tests so it only executes ONE of them each time then doesn't do any more tests, and it should come good for you.
Ah, of course.


Your conditional branches are not nested.  So it does the first test to see if the choice is 2, and if it is, it changes it back to 0.  Then it does the next test to see if the choice is 1, which it isn't so that's skipped.  Then it does the third test to see if the choice is 0, which it is, because you just changed it to 0.  So it changes it to 1.


Just nest your tests so it only executes ONE of them each time then doesn't do any more tests, and it should come good for you.



That was it! I used labels to go back at the start of the event and it works like a charm now. Thanks!
You could also have done Exit Event Processing, which would just go to the end of the event, and because it's parallel process, it would then loop.

Original thread: https://forums.rpgmakerweb.com/threads/evented-title-screen-w-pictures-problem-with-commands.63798/