Page 1 of 1

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

Posted: Fri Apr 08, 2011 3:00 am
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

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

Posted: Fri Apr 08, 2011 8:03 am
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.

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

Posted: Fri Apr 08, 2011 5:08 pm
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",

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

Posted: Sun Aug 07, 2011 8:01 am
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)