Skip to main content
fixed/added code markdown
Source Link
Pikalek
  • 13.4k
  • 5
  • 49
  • 54

I have a method, which runs anthe action MenuScreen at the very end. It never fires. Why is that?

fun method() {
        scene.addSegment(SceneSegment(theEnd, Actions.fadeIn(4f)))

        scene.addSegment(SceneSegment(background, Actions.delay(10f)))
        scene.addSegment(SceneSegment(background, Actions.run { MenuScreen() }))

        scene.start()
    }

theEndtheEnd fades in properly, but the MenuScreenMenuScreen is never called.

I have a method, which runs an action at the very end. It never fires. Why is that?

fun method() {
        scene.addSegment(SceneSegment(theEnd, Actions.fadeIn(4f)))

        scene.addSegment(SceneSegment(background, Actions.delay(10f)))
        scene.addSegment(SceneSegment(background, Actions.run { MenuScreen() }))

        scene.start()
    }

theEnd fades in properly, but the MenuScreen is never called.

I have a method, which runs the action MenuScreen at the very end. It never fires. Why is that?

fun method() {
     scene.addSegment(SceneSegment(theEnd, Actions.fadeIn(4f)))

     scene.addSegment(SceneSegment(background, Actions.delay(10f)))
     scene.addSegment(SceneSegment(background, Actions.run { MenuScreen() }))

     scene.start()
}

theEnd fades in properly, but the MenuScreen is never called.

Source Link

Action never fires

I have a method, which runs an action at the very end. It never fires. Why is that?

fun method() {
        scene.addSegment(SceneSegment(theEnd, Actions.fadeIn(4f)))

        scene.addSegment(SceneSegment(background, Actions.delay(10f)))
        scene.addSegment(SceneSegment(background, Actions.run { MenuScreen() }))

        scene.start()
    }

theEnd fades in properly, but the MenuScreen is never called.