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

Action never fires

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.