problem with layout.imagemap_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
Babak
Newbie
Posts: 2
Joined: Thu Apr 10, 2014 3:42 pm
Contact:

problem with layout.imagemap_main_menu

#1 Post by Babak »

hello all,
i am new to ren'py, actually started with it yesterday. well i did my research on layout.imagemap_main_menu, get it working but there is a slight problem, it always comes with a default theme menu background around hotspots.

take a look :
Image

this is the code i use :

Code: Select all

init -2 python:
    layout.imagemap_main_menu("splash_back_menu3.jpg","splash_back_menu2.jpg",[
        (685, 450, 785 ,475 ,"Start Game"),
        (685, 477, 785 ,502 ,"Load Game"),
    ])
so what have i done wrong? thanks in advance :)
Attachments
menu.PNG
menu.PNG (73.85 KiB) Viewed 524 times

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: problem with layout.imagemap_main_menu

#2 Post by Donmai »

You are using outdated code (see the warning at the top of the wiki pages). It's better now to work with screen language. Here is a good tutorial: http://lemmasoft.renai.us/forums/viewto ... 51&t=14237
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Babak
Newbie
Posts: 2
Joined: Thu Apr 10, 2014 3:42 pm
Contact:

Re: problem with layout.imagemap_main_menu

#3 Post by Babak »

thanks alot man, that did the trick :)

Post Reply

Who is online

Users browsing this forum: Sugar_and_rice