Rotating Main Menu Options

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Ragnos
Regular
Posts: 37
Joined: Thu Oct 27, 2016 3:22 pm
Contact:

Rotating Main Menu Options

#1 Post by Ragnos » Wed Apr 12, 2017 1:28 pm

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?

User avatar
SuperbowserX
Veteran
Posts: 236
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Rotating Main Menu Options

#2 Post by SuperbowserX » Wed Apr 12, 2017 2:42 pm

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

User avatar
Ragnos
Regular
Posts: 37
Joined: Thu Oct 27, 2016 3:22 pm
Contact:

Re: Rotating Main Menu Options

#3 Post by Ragnos » Thu Apr 13, 2017 1:13 pm

That helps with the keybinds, Thanks. Now to figure out the rotating selection.

User avatar
Ragnos
Regular
Posts: 37
Joined: Thu Oct 27, 2016 3:22 pm
Contact:

Re: Rotating Main Menu Options

#4 Post by Ragnos » Thu Apr 20, 2017 12:58 pm

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?

User avatar
Saltome
Regular
Posts: 193
Joined: Sun Oct 26, 2014 1:07 pm
Deviantart: saltome
Contact:

Re: Rotating Main Menu Options

#5 Post by Saltome » Fri Apr 21, 2017 12:07 am

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.
Phoenix Star - Persistence, perseverance, ambition.
...
Lost Legends
[VN][Fantasy][Open World]
Deviant Art: Image

User avatar
Ragnos
Regular
Posts: 37
Joined: Thu Oct 27, 2016 3:22 pm
Contact:

Re: Rotating Main Menu Options

#6 Post by Ragnos » Fri Apr 21, 2017 8:50 am

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.

User avatar
Saltome
Regular
Posts: 193
Joined: Sun Oct 26, 2014 1:07 pm
Deviantart: saltome
Contact:

Re: Rotating Main Menu Options

#7 Post by Saltome » Fri Apr 21, 2017 11:13 am

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.
Phoenix Star - Persistence, perseverance, ambition.
...
Lost Legends
[VN][Fantasy][Open World]
Deviant Art: Image

Post Reply

Who is online

Users browsing this forum: No registered users