To achieve this I made two images "auto_icon.png" and "auto_text.png" and wanted to combine them into one imagebutton using Composite, but I have no idea if it makes any sense.
I coded it like this:
Code: Select all
init:
transform auto_move:
on hover:
xpos 1920 ypos 5
linear 0.3 xpos 1770 ypos 5
on idle:
linear 0.3 xpos 1920 ypos 5
image auto_slide:
"auto_text.png"
at auto_move
image auto_idle = "auto_icon.png"
image auto_hover = Composite(
(154, 29),
(0, 0), "auto_slide",
(0, 0), "auto_icon.png"
)
screen quick_menu():
zorder 100
if quick_menu:
imagebutton:
auto "auto_%s"
xpos 1770 ypos 5
focus_mask True
action Preference("auto-forward", "toggle")
Code: Select all
File "game / screens.rpy", line 255: expected 'comma or end of line' not found.
at auto_move
^