Ren'Py Simple image buttons

VBZ

New Member
Aug 27, 2017
3
0
Hi,

Maybe a dumb question, but is it possible to code imagebuttons without any hover ? I don't want some clickable spots in the scene to be obvious... Thanks in advance for any help !
 

mickydoo

Fudged it again.
Game Developer
Jan 5, 2018
2,446
3,548
Hi,

Maybe a dumb question, but is it possible to code imagebuttons without any hover ? I don't want some clickable spots in the scene to be obvious... Thanks in advance for any help !
You need to name the image like this
filename_idle

Then code like this
imagebutton auto "filename_%s.png" action Jump("whatever")

Or filename_%s.jpg or whatever the format is, renpy will yell at you otherwise.
 
  • Like
Reactions: lancelotdulak

the66

beware, the germans are cumming
Modder
Donor
Respected User
Jan 27, 2017
7,667
23,782
just use only the idle property, no matter the file name.
you're not forced to use the other properties to define images for the button.

Python:
screen bla():
    add "bg image"
    
    imagebutton:
        pos (123, 456)
        idle "ibutton idle image"
        action Hide("bla")
 
  • Like
Reactions: lancelotdulak

Basilicata

Radioactive Member
Game Developer
Oct 24, 2017
1,345
3,117
Others have already written all there is to write so I present you a fun fact: Once in UK a high school professor called one of his students, idle (lazy). Later that student became Billy Idol.