-
how switch between screen |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Not sure what's the issue here.
|
Beta Was this translation helpful? Give feedback.
-
@czyzby game on a screen, now i do not understand how can change screen out of ktxgame if (currentScreen == AScreen()) setScreent(BScreen())
|
Beta Was this translation helpful? Give feedback.
-
You should keep a reference to the original class MyScreen(val game: KtxGame) : KtxScreen {
// Implement your logic.
} |
Beta Was this translation helpful? Give feedback.
-
thanks |
Beta Was this translation helpful? Give feedback.
You should keep a reference to the original
KtxGame
. For example: