Nanahs wrote: ↑Fri Jan 11, 2019 5:27 pm
A little help?
between textbutton's
action and imagebutton's
action is no special difference.
https://renpy.org/doc/html/screens.html#imagebutton
https://renpy.org/doc/html/screens.html#textbutton
https://renpy.org/doc/html/screens.html#button
Code: Select all
screen choscene():
modal True
text 'Choose your bedroom.' align(.5, .05)
grid 2 2 at truecenter:
spacing 100
add im.FactorScale('beda.jpg', .3)
add im.FactorScale('bedb.jpg', .3)
add im.FactorScale('bedc.jpg', .3)
add im.FactorScale('bedd.jpg', .3)
textbutton 'Anna\'s bedroom' action SetVariable('xch', 'a'), Return() align(.3, .47)
textbutton 'Susan\'s bedroom' action SetVariable('xch', 'b'), Return() align(.7, .47)
textbutton 'Other\'s bedroom' action SetVariable('xch', 'c'), Return() align(.3, .95)
textbutton 'Just bedroom' action SetVariable('xch', 'd'), Return() align(.7, .95)
The code was tested for (1280, 720) display resolution. So need some tweaking with
align() and
spacing.
https://renpy.org/doc/html/screens.html#add
https://www.renpy.org/doc/html/screens.html#grid <<<< (!)
P.S. Ideally, it is necessary to replace:
Code: Select all
add im.FactorScale('beda.jpg', .3)
with:
and etc...
Where
beda_small.jpg - the reduced copy of the main image
beda.jpg
(It will increase capacity.)
P.P.S. I strongly recommend to begin to read documentation and tutorial game.
{Disappears}