Page 1 of 1

Imagebutton usage

Posted: Sat Aug 26, 2017 4:04 pm
by Bruni Multimedia
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?

Re: Imagebutton usage

Posted: Sat Aug 26, 2017 7:35 pm
by Bruni Multimedia
I made it, I was calling the imagebutton in the wrong way. You can close this, sorry for wasting your time :(

Re: Imagebutton usage

Posted: Wed Aug 30, 2017 8:44 am
by BKFeng
Bruni 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 :(
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 ToT
Please teach me thanks :wink:

Re: Imagebutton usage

Posted: Wed Aug 30, 2017 5:03 pm
by Imperf3kt
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

Re: Imagebutton usage

Posted: Mon Sep 04, 2017 11:59 am
by BKFeng
Thanks!