The_Sauce found the following strange behavior that seems to be a bug:
Action with SetVariable cancels transform effects if old and new values of a variable used in SetVariable are the same:
Code: Select all
default param = 0
transform expand:
on hover:
linear 0.12 zoom 2.0
on idle:
linear 0.05 zoom 1.0
screen test:
imagebutton at expand:
idle Solid('#f00', xysize = (200,200))
hover Solid('#0f0', xysize = (200,200))
action SetVariable("param", 0)
label start:
call screen test
Firstly I thought that renpy interprets this as action None if value is not changed, but it also cancels transform effect if we add additional action that normally triggers transforms:
Code: Select all
imagebutton at expand:
action [ Return(), SetVariable("param", 0) ]
HAPPY NEW YEAR!!!