Problems with my Main Menu video

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
theravano
Newbie
Posts: 6
Joined: Wed Aug 02, 2017 3:10 pm
Organization: Bearcade Games
itch: bearcade
Contact:

Problems with my Main Menu video

#1 Post by theravano »

Hey guys, i'm having some problems with my Main Menu.

My main menu is a video with imagemaps/hotspots on top of it. It works fine, but if i enter on any menu (Preferences, Load) and use the fuction Return, the video on the background dissapear.
But if i return to the main menu through the game itself, its fine. Only when i use the Return it breaks.

My MainMenu code, on screens.rpy

Code: Select all

## Used to display the main menu when Ren'Py starts.
##
## http://www.renpy.org/doc/html/screen_special.html#main-menu

screen main_menu():
    add Movie(size=(1280, 720))
    on "show" action Play("movie", "gui/Title.avi", loop=True)
    on "hide" action Stop("movie")
    on "replaced" action Stop("movie")

    # This ensures that any other menu screen is replaced.
    tag menu
    add Movie(size=(1280, 720))

    imagemap:
        ground 'gui/idle2.png'
        idle 'gui/idle2.png'
        hover 'gui/hover2.png'

        alpha True

        hotspot(928,406,320,60) action Start()
        hotspot(900,475,389,60) action ShowMenu("load")
        hotspot(950,550,260,62) action ShowMenu("preferences")
        hotspot(910,616,325,70) action Quit(confirm=False)
Somebody can help me? What i'm doing wrong?

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Problems with my Main Menu video

#2 Post by Imperf3kt »

If I remember correctly, this is a bug in Ren'Py and there isn't anything you can do about it at this time.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

theravano
Newbie
Posts: 6
Joined: Wed Aug 02, 2017 3:10 pm
Organization: Bearcade Games
itch: bearcade
Contact:

Re: Problems with my Main Menu video

#3 Post by theravano »

Ouch, really?
Thank you

Diathorn
Newbie
Posts: 3
Joined: Wed Aug 16, 2017 4:45 pm
Contact:

Re: Problems with my Main Menu video

#4 Post by Diathorn »

Hello.
You could try this

Code: Select all

style_prefix "main_menu"
    add Movie(size=(1920, 1080))
    on "show" action Play("movie", "movie/1beta_1.ogv", loop=True)
    on "hide" action Hide("movie")
    on "replaced" action Hide("movie")
    on "start" action Stop("movie")

theravano
Newbie
Posts: 6
Joined: Wed Aug 02, 2017 3:10 pm
Organization: Bearcade Games
itch: bearcade
Contact:

Re: Problems with my Main Menu video

#5 Post by theravano »

Still the same... But thank you!
Probably i will just use a picture on my main menu

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Jackkel Dragon