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.
Renpy newbie, Just started messing around with the program. Every time I click return on the navigation menu, my logo animation replays. First Logo3 would show for a split second, disappear, and then repeat at scene. Animation would replay completely.
How can I get Logo3 to show on the main menu as soon as return is clicked, without replaying the menu animation?
label main_menu:
scene mainmenu with flash
show logo2 with dissolve:
truecenter
$ renpy.pause(.1, hard=True)
show logo3 with dissolve:
truecenter
# The main menu buttons.
$ ui.vbox(xalign=.98, yalign=.98)
$ ui.textbutton("Start Game", clicked=ui.returns("start"))
$ ui.textbutton("Load Game", clicked=ui.returns("load"))
$ ui.textbutton("Options", clicked=ui.returns("prefs"))
$ ui.textbutton("Exit", clicked=ui.returns("quit"))
$ ui.close()
$ result = ui.interact()
if result == "start":
hide mainmenu
$ renpy.jump_out_of_context("start")
elif result == "load":
jump load_screen
elif result == "prefs":
jump preferences_screen
elif result == "quit":
$ renpy.quit()
screen navigation():
# The background of the game menu.
window:
style "gm_root"
# The various buttons.
frame:
style_group "gm_nav"
xalign .98
yalign .98
has vbox
textbutton _("Return") action Return()
textbutton _("Options") action ShowMenu("preferences")
textbutton _("Save Game") action ShowMenu("save")
textbutton _("Load Game") action ShowMenu("load")
#textbutton _("Main Menu") action ShowMenu("main_menu")
#textbutton _("Help") action Help()
textbutton _("Quit") action Quit()
init -2:
# Make all game menu navigation buttons the same size.
style gm_nav_button:
size_group "gm_nav"
Last edited by Fluxx on Wed Mar 25, 2015 3:36 pm, edited 1 time in total.
CURRENT PROJECTS (Ongoing) Nature's Kingdom- A Girl Wishes for Utopia -
Web Novel that takes place in the same universe as Magnificent//Omniversal Love.
#We've reached the end of the prologue"
# Let's save that fact
$ persistent.seenprologue = True
$ _game_menu_screen = "_save_screen"
jump logoanimation
label logoanimation:
scene mainmenu with flash
play music "Into the Night.mp3" fadein 0.1
show logo2 with dissolve:
truecenter
$ renpy.pause(.1, hard=True)
show logo3 with Dissolve(2, alpha=True, time_warp=None):
truecenter
return
#goes to main menu
label main_menu:
scene mainmenu
show logo3:
truecenter
CURRENT PROJECTS (Ongoing) Nature's Kingdom- A Girl Wishes for Utopia -
Web Novel that takes place in the same universe as Magnificent//Omniversal Love.