There is an actor, and by tapu he should move to a new screen. This does not happen, but output to the console works. What is the reason and how to fix it?

@override public void touchUp(InputEvent event, float x, float y, int pointer, int button){ Gdx.app.log("Hi CLICK WORKING", ""); } @override public boolean touchDown(InputEvent event, float x, float y, int pointer, int button){ return false; } 

Closed due to the fact that the essence of the question is incomprehensible by the participants cheops , user194374, aleksandr barakin , zRrr , D-side 12 Jul '16 at 11:36 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

Maybe the screen does not change because there is simply no code to switch to a new screen?

 @override public void touchUp(InputEvent event, float x, float y, int pointer, int button) { Gdx.app.log("Hi CLICK WORKING", ""); game.setScreen(myScreen); } @override public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { return false; }