Page 1 of 1

With() action does not use transitions when given move, ease

Posted: Tue Jan 02, 2018 2:49 pm
by Empish
Hey, I'm looking into hovering effects for someone. Specifically looking at the move and ease ones. They don't seem to be activated with the With(transition) action in screen code, even when I tried defining my own MoveTransition.

Note that the transition happens fine when I use something like dissolve instead.

Code: Select all

image header thing = "someimage.png"
default header_toggle = False

screen some_screen:
	textbutton "Do Header":
        action NullAction()
        hovered [SetVariable("header_toggle", True), With(moveintop)]
        unhovered [SetVariable("header_toggle", False), With(moveouttop)]
        xalign 0.5
        yalign 0.75

    if header_toggle:
        add "header thing"
It doesn't give any errors, but rather just acts as if there was no With action there at all. I've tried with a variety of the move and ease transitions.