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.
How to make Menu start game Center like this picture ? ^^!
(1) ~> (2)
I'm forget about this o_O
What happens after i change Menu with that o_O
Can you help me after i change Menu on Picture (2)
Menu loads still like that picture (3) ?
Menu Picture (2) just for Open Start Game ^^!
# The main menu buttons.
frame:
style_group "mm"
xalign .5
yalign .8
1) Mmm, it is a bit complicated. Here is the code for music room - http://www.renpy.org/doc/html/rooms.html#music-room
You can freely customize "screen music_room:" the way you need. So, the code might look like
# The main menu buttons.
frame:
style_group "mm"
xalign .5
yalign .8
1) Mmm, it is a bit complicated. Here is the code for music room - http://www.renpy.org/doc/html/rooms.html#music-room
You can freely customize "screen music_room:" the way you need. So, the code might look like
imagebutton:
idle "idle_next_button.png"
hover "hover_next_button.png"
selected_idle "hover_next_button.png" # or different image
selected_hover "hover_next_button.png" # or different image
action mr.Next()
& show title music when i click to play ?
That's not a default feature, as far as I know (but, I might be wrong). So, you have two options:
1. rewrite musicroom class to add this
2a. do not use it
2b. do it like
screen music_room:
tag menu
default track_name = "tr_1" # name of first "always unlocked" track that will play automatically when player enters musicroom
add Solid("#fff") # or add "my_music_room_bg.png"
vbox:
xalign 0.1 yalign 0.1
vbox:
xminimum 250 xmaximum 250
yminimum 70 ymaximum 70
frame:
text "[track_name]" xalign 0.0 yalign 0.1
text "TRACK NAME" size 10 xalign 1.0 yalign 1.0
null width 5
hbox:
vbox:
xminimum 250 xmaximum 250
yminimum 70 ymaximum 70
frame:
bar value Preference("music volume") xalign 0.0 yalign 0.1 # copy/pasted from screens.rpy
text "VOLUME" size 10 xalign 1.0 yalign 1.0
... ... ...
textbutton "Track 1" action [mr.Play("track1.ogg"), SetScreenVariable("track_name", "tr_1")]
textbutton "Track 2" action [mr.Play("track2.ogg"),SetScreenVariable("track_name", "tr_2")]
textbutton "Track 3" action [mr.Play("track3.ogg"), SetScreenVariable("track_name", "tr_3")]
and you should avoid of using "next" and "previouse" buttons, 'cause they will change the track, but not change the track name to display - player must click each track button to change the track.
# The number of normal save slots.
config.load_save_slots = 50
# The number of autosave slots.
config.load_save_auto_slots = 5
# The number of quicksave slots.
config.load_save_quick_slots = 5
# How we format time in a file entry.
config.time_format = "%b %d, %H:%M"
# How we format a file entry.
config.file_entry_format = "%(time)s\n%(save_name)s"
# Set the default size of thumbnails.
config.thumbnail_width = 320
config.thumbnail_height = 240
# The default empty slot thumbnail.
config.load_save_empty_thumbnail = None
# Styles.
style.file_picker_frame = Style(style.frame, help="frame containing the file picker")
style.file_picker_side = Style(style.default, help="ui.side containing the file picker and the scrollbars")
style.file_picker_viewport = Style(style.viewport, help="viewport containing the file picker entries")
style.file_picker_box = Style(style.vbox, help="box containing the file picker entries")
style.file_picker_entry = Style(style.large_button, help="the buttons containing information about each file")
style.file_picker_text = Style(style.large_button_text, help="the text inside a file picker entry.")
style.file_picker_scrollbar = Style(style.vscrollbar, help="the text inside a file picker entry.")
style.thumbnail_frame = Style(style.frame, help="the style of the frame containing a thumbnail")
# Position things correctly.
style.file_picker_frame.xmaximum = 0.5
style.file_picker_frame.xmargin = 6
style.file_picker_frame.ymargin = 6
style.file_picker_frame.yfill = True
style.file_picker_entry.xfill = True
style.file_picker_entry.yminimum = 58
style.thumbnail_frame.ymargin = 6
style.thumbnail_frame.xpos = 0.75
style.thumbnail_frame.xanchor = 0.5
So, you need to add this line to "init -2:" block (do not change "scrolling_load_save.rpym" itself)
screen navigation:
# The background of the game menu.
window:
style "gm_root"
# The various buttons.
frame:
style_group "gm_nav"
xalign .98 # <======== you can change its position
yalign .98
2. Change the style of navigation frame - add this line to "init -2:" block