Main Menu?

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
Lumen_Astrum
Dystopian Princess
Posts: 1662
Joined: Mon Nov 08, 2010 8:01 am
Completed: Soul and Heart, Twin Faces
Projects: Soul and Heart Replay; The Court of the Two Sides (tentative title)
Organization: Lion Box Studios
Tumblr: lumenizampel
Location: Philippines
Contact:

Main Menu?

#1 Post by Lumen_Astrum » Wed Jul 27, 2011 3:26 am

Can anybody help me with this?

I wanna change the main menu image along with the music in-game. Yet, I really, really don't know how to do that. Seriously.

I use a customized main menu. Is there a way to change it, with the imagemap button areas remaining the same (only the image is different)?

Thank you and sorry if it seems too confusing ^_^;;;

User avatar
Wright1000
Miko-Class Veteran
Posts: 629
Joined: Thu Mar 31, 2011 10:20 am
Completed: Finding A Murderer, Memory Loss, Crime Investigation, Stay away from the graveyard, Last Day at School, Lonesome, Email, Hired Gun, Dusk, Hired Gun 2, Man-at-arms, Hired Gun 3, The Phantom Caller, Street Girl, Free love, The Story of Isabel Claudia
Contact:

Re: Main Menu?

#2 Post by Wright1000 » Wed Jul 27, 2011 9:04 am

There is no way to change the image and let the image button areas remain the same.
However, it can be done if you know the ui function.
He who doesn't care about the environment doesn't care about his grandchildren.

User avatar
Anima
Veteran
Posts: 448
Joined: Wed Nov 18, 2009 11:17 am
Completed: Loren
Projects: PS2
Location: Germany
Contact:

Re: Main Menu?

#3 Post by Anima » Wed Jul 27, 2011 2:12 pm

You could store the image name inside a variable and simply change the variable.

Code: Select all

screen preferences:

    tag menu
    use navigation

    imagemap:
        auto preferenceImage

        hotspot (740, 232, 75, 73) clicked Preference("display", "fullscreen")
        hotspot (832, 232, 75, 73) clicked Preference("display", "window")
        hotspot (1074, 232, 75, 73) clicked Preference("transitions", "all")
        hotspot (1166, 232, 75, 73) clicked Preference("transitions", "none")

        hotbar (736, 415, 161, 20) value Preference("music volume")
        hotbar (1070, 415, 161, 20) value Preference("sound volume")
        hotbar (667, 535, 161, 20) value Preference("voice volume")
        hotbar (1001, 535, 161, 20) value Preference("text speed")
I haven't tried that though.
Avatar created with this deviation by Crysa
Currently working on:
  • Winterwolves "Planet Stronghold 2" - RPG Framework: Phase III

User avatar
Efreet
Regular
Posts: 145
Joined: Sun Mar 02, 2008 5:21 pm
Projects: Denial, Guilt [On Hold]
Location: UK
Contact:

Re: Main Menu?

#4 Post by Efreet » Wed Jul 27, 2011 2:33 pm

Could it be that you want a changing background image (like a slideshow) to your main menu?

Well you should follow Anima's suggestion since you can change the background image and keep the menu buttons the same. The problem lies with animating the background in order for it to change to the music.

Look here and here and see if it helps.

User avatar
Lumen_Astrum
Dystopian Princess
Posts: 1662
Joined: Mon Nov 08, 2010 8:01 am
Completed: Soul and Heart, Twin Faces
Projects: Soul and Heart Replay; The Court of the Two Sides (tentative title)
Organization: Lion Box Studios
Tumblr: lumenizampel
Location: Philippines
Contact:

Re: Main Menu?

#5 Post by Lumen_Astrum » Sat Jul 30, 2011 9:46 am

I don't need an animated background XD I need that after a certain event in the script has passed, the image'll change.

clannadman

Re: Main Menu?

#6 Post by clannadman » Sat Jul 30, 2011 12:05 pm

Doesn't the ground image just need changing then?

User avatar
Lumen_Astrum
Dystopian Princess
Posts: 1662
Joined: Mon Nov 08, 2010 8:01 am
Completed: Soul and Heart, Twin Faces
Projects: Soul and Heart Replay; The Court of the Two Sides (tentative title)
Organization: Lion Box Studios
Tumblr: lumenizampel
Location: Philippines
Contact:

Re: Main Menu?

#7 Post by Lumen_Astrum » Mon Aug 01, 2011 7:55 am

Errr... ground image?
Sorry, sorry, I'm not really that good at coding XD

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: Main Menu?

#8 Post by Aleema » Mon Aug 01, 2011 6:18 pm

Doesn't this cookbook entry help? Instead of changing the persistent variable after the game is done, just change it where you want it.

User avatar
Lumen_Astrum
Dystopian Princess
Posts: 1662
Joined: Mon Nov 08, 2010 8:01 am
Completed: Soul and Heart, Twin Faces
Projects: Soul and Heart Replay; The Court of the Two Sides (tentative title)
Organization: Lion Box Studios
Tumblr: lumenizampel
Location: Philippines
Contact:

Re: Main Menu?

#9 Post by Lumen_Astrum » Mon Aug 01, 2011 9:50 pm

Ooh, thank you! :)
Yet, is changing the music in the main menu in-game possible? O:

Post Reply

Who is online

Users browsing this forum: Bing [Bot], _ticlock_