PUTTING AN IMAGE BACKGROUND AS A MAIN MENU WINDOW(pls help!)

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
jory014
Regular
Posts: 80
Joined: Fri Mar 18, 2011 6:13 am
Projects: Confidant From Darkness (VN), Stand By Me (NaNoRenO 2013)
Organization: CHILL Brigade
Location: Manila, Philippines
Contact:

PUTTING AN IMAGE BACKGROUND AS A MAIN MENU WINDOW(pls help!)

#1 Post by jory014 »

I really need help asap, because I'll be making a game to be used as a presentation for a project in school... and I keep having this error

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


On line 32 of C:\Documents and Settings\Jaja\My Documents\GAME MAKER\BLACK HAWK CASE/game/script.rpy: expected statement.
style.mm_root_window.background = Image("BLACK HAWKmmw.jpg")
^

Ren'Py Version: Ren'Py 6.12.0e

how can I fix this? I just want to put an image in the game menu window :(

HELP IS VERY MUCH APPRECIATED THANKS
"We're Cute and Cool, while Chilling- CHILL Brigade-"

W.I.P:
-A Confidant From Darkness
http://lemmasoft.renai.us/forums/viewto ... t=11427url
-~Stand By Me~
http://lemmasoft.renai.us/forums/viewto ... 50&t=19784

Team Site:
-CHILL Brigade]
http://chillbrigade14.wix.com/chill-brigade

denzil
Veteran
Posts: 293
Joined: Wed Apr 20, 2005 4:01 pm
Contact:

Re: PUTTING AN IMAGE BACKGROUND AS A MAIN MENU WINDOW(pls he

#2 Post by denzil »

My guess would be that you are missing $ on the beginning of the line:

Code: Select all

$ style.mm_root_window.background = Image("BLACK HAWKmmw.jpg")
Better way to change the background would be probably just to change the mm_root="#..." line in options.rpy file.
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

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

Re: PUTTING AN IMAGE BACKGROUND AS A MAIN MENU WINDOW(pls he

#3 Post by Aleema »

Find this code in your options.rpy:

Code: Select all

## The background of the main menu. This can be a color
        ## beginning with '#', or an image filename. The latter
        ## should take up the full height and width of the screen.
        mm_root = "#dcebff",
Replace with:

Code: Select all

mm_root = "BLACK HAWKmmw.jpg",

User avatar
jory014
Regular
Posts: 80
Joined: Fri Mar 18, 2011 6:13 am
Projects: Confidant From Darkness (VN), Stand By Me (NaNoRenO 2013)
Organization: CHILL Brigade
Location: Manila, Philippines
Contact:

Re: PUTTING AN IMAGE BACKGROUND AS A MAIN MENU WINDOW(pls he

#4 Post by jory014 »

Thanks for the help! I could have replied sooner for my thanks though! Twas doing it a rush back then...(lol I used a game to present as my project lols)
"We're Cute and Cool, while Chilling- CHILL Brigade-"

W.I.P:
-A Confidant From Darkness
http://lemmasoft.renai.us/forums/viewto ... t=11427url
-~Stand By Me~
http://lemmasoft.renai.us/forums/viewto ... 50&t=19784

Team Site:
-CHILL Brigade]
http://chillbrigade14.wix.com/chill-brigade

Post Reply

Who is online

Users browsing this forum: piinkpuddiin