Hi guys.
I read the tutorials about this, but they always speak about using imagebuttons as menus, and I can't seem to make them work anyway.
I have something like this:
label pippo:
if a == 1:
scene a
elif a == 2:
scene b
elif a == 3:
scene c
if c>=3:
call rita_check from _call_rita_check_33
jump rita_1_dismiss
# HERE I PUT THE CALL SCREEN FOR IMAGEBUTTONS
menu:
"Choice" if e1_done == 0:
$ test = a
"Choice 2" if e1_done == 0:
$ test = b
"Choice 3" if e1_done == 0:
$ test = c
I'd like to use imagebuttons insteaad of menu choices, so that I can click over the scene at the coordinates of the imagebuttons.
I tried but the game always prompts me to the text choices...
Can someone help me?
Imagebutton usage
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.
- Bruni Multimedia
- Regular
- Posts: 114
- Joined: Mon May 15, 2017 12:23 pm
- Projects: Yomi Alliance
- Organization: Bruni Multimedia
- itch: brunimultimedia
- Contact:
- Bruni Multimedia
- Regular
- Posts: 114
- Joined: Mon May 15, 2017 12:23 pm
- Projects: Yomi Alliance
- Organization: Bruni Multimedia
- itch: brunimultimedia
- Contact:
Re: Imagebutton usage
I made it, I was calling the imagebutton in the wrong way. You can close this, sorry for wasting your time
Re: Imagebutton usage
How? I'm new! I would like to learn how to make image button... Hope teacher can tell me soon! I REALLY REALLY REALLY REALLY REALLY need to know how to make image button for my battle mini game ToTBruni Multimedia wrote: ↑Sat Aug 26, 2017 7:35 pm I made it, I was calling the imagebutton in the wrong way. You can close this, sorry for wasting your time
Please teach me thanks
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3792
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Imagebutton usage
Take a look at the documentation for imagebuttons, its quite well detailed with minimal coding jargon and should help get you started.
https://www.renpy.org/doc/html/screens.html#imagebutton
https://www.renpy.org/doc/html/screens.html#imagebutton
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Imagebutton usage
Thanks!
Who is online
Users browsing this forum: No registered users