Page 1 of 1
Rotating Main Menu Options
Posted: Wed Apr 12, 2017 1:28 pm
by Ragnos
I've no idea where to start with this, but I have an idea for a VN I'm reviving. I'm wanting to make it to where the player uses his arrow keys to cycle through menu options on the title screen. The options are set-up in a circle starting with start, when you press right (Or left) it rotates to the next option, and so on and so forth. Is this possible in Ren'py?
Re: Rotating Main Menu Options
Posted: Wed Apr 12, 2017 2:42 pm
by SuperbowserX
Something like this might help:
viewtopic.php?f=8&t=26511
And here's the documentation entry:
https://www.renpy.org/doc/html/keymap.html
Re: Rotating Main Menu Options
Posted: Thu Apr 13, 2017 1:13 pm
by Ragnos
That helps with the keybinds, Thanks. Now to figure out the rotating selection.
Re: Rotating Main Menu Options
Posted: Thu Apr 20, 2017 12:58 pm
by Ragnos
Okay I made the UI assets I needed for the rotating menu, but how do I have the options move in a circle?
As you cycle through the options I want them to rotate. I've messed with the positioning, but I've no idea how to pull this off. Any help?
Re: Rotating Main Menu Options
Posted: Fri Apr 21, 2017 12:07 am
by Saltome
Well I figure you should define a couple of transforms, to animate the buttons moving in a circle, then use the keybinding to get them to move.
Although, you do realize this isn't RPGMaker? My first instinct won't even remotely be to use the arrow keys on the main menu.
Re: Rotating Main Menu Options
Posted: Fri Apr 21, 2017 8:50 am
by Ragnos
Saltome wrote:
Although, you do realize this isn't RPGMaker? My first instinct won't even remotely be to use the arrow keys on the main menu.
Well, I need the player to rotate through the selection somehow. I suppose using a the mouse and mouse wheel could work.
Actually where would I find the code to alter the postion of the main menu options.
Re: Rotating Main Menu Options
Posted: Fri Apr 21, 2017 11:13 am
by Saltome
That might work, assuming you don't have any issues with the rollback feature. Since that's also mapped to the mousewheel. But you should be fine.
In the screens file, the main_menu screen.