Hey guys. I just started ren'py about 2 days ago so I'm a noob and I was wondering how to make the main menu buttons have images and stuff...
Main Menu:
I want the Start, Load game, Preferences, Help, & Quit to have an image.
I appreciate the help in advanced!
Button images?
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.
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.
Re: Button images?
You could use an imagemap.
Code: Select all
init -2 python:
layout.imagemap_main_menu("Ground.jpg", "Hover.jpg", [
(111, 248, 392 ,313, "Start Game"),
(111, 313, 392, 378, "Load Game"),
(48, 432, 237, 529, "Preferences"),
(48,529,237,576, "Quit"),
(48, 435, 237, 482, "Help"),
])
I'm going to smile like nothing's wrong. Talk like everything's perfect, act like it’s all a dream and pretend it's not hurting me.
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: Button images?
At least some of those old imagemap layout codes are broken for newer Ren'Py versions. You should use imagemaps using Screen Language. Here's a tutorial.
Re: Button images?
Really? oo' I'm using Ren'Py 6.12.1 and it works without any problems.Aleema wrote:At least some of those old imagemap layout codes are broken for newer Ren'Py versions.
I'm going to smile like nothing's wrong. Talk like everything's perfect, act like it’s all a dream and pretend it's not hurting me.
- Aleema
- Lemma-Class Veteran
- Posts: 2677
- Joined: Fri May 23, 2008 2:11 pm
- Organization: happyB
- Tumblr: happybackwards
- Contact:
Re: Button images?
I've personally encountered several problems (the navigation imagemap jumps to mind), but your mileage may vary.