While the above gif might look fairly simple and easy, it was anything but. You see to program this all with RPG maker MV's eventing system only means that its impossible to tell the system what image that is currently selected.
This means I manually had to move each picture into the characters mouth and have 9 choices, each that would denote a variable that would indicate which current item it was on. Each variable would have to reset the variable to a different number to indicate that something different has been chosen. i.e:
Conditional branch, if the first > (arrow) i selected then set the burgerchoice variable to 1, then 2 and so on for if the player continues to press right.
Each time the player presses right, the picture is manually moved by the system to just the right position to inside the mouth. Then a new choice set of arrows is shown with different values.
A problem I ran into was if the player went back a choice, it would then move onto the next set of choices in the eventing system, meaning players wanting to them go forward in the list after going back would then skip a few options. So to combat this each choice has an event, that if they choose to go back one option, then a label also jumps back the players choice arrows one selection.
This means the player now has free roam of the list and its working like you'd expect a menu to work! (But with cool pictures! And getting 9 choices for the low low price of having only 3 clickable buttons)
I quickly realized that should the NPC choose choice number 9 it'd be very annoying having to go all the way over. So as you can see in this shot, if you press left when there's no option on the left, or vice versa for right, it'll flip to the other side of the menu for quicker access to the player.
Just something cool I wanted to share, retale 2 is going strong and I never stop working on it!
For this fastfood minigame I'm thinking of making it so you have a short amount of time to feed the burgers that they pred wants, each burger you feed them fills up an ever expanding belly on screen. Fill it up enough to improve a relationship, or not enough and end up in the next burger! Woops!
Sym
Cyat
2018-07-10 23:53:42 +0000 UTC