A
A
arsden22016-06-30 18:21:41
Java
arsden2, 2016-06-30 18:21:41

How to set a new screen on click on an actor in libgdx?

how to set new screen on actor click in libgdx ? 784a07ea05c44721a30896ad6a6ec6d3.png
in this method?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Shipilov, 2016-07-01
@mrsanders

Good day, during the click, "Hi click working" is logged? If not, then they forgot to register InputProcessor. Write in the show method of your scene:
Where gameStage is your Stage on which the Actor is located.
Perhaps the scene is still changing, but something is wrong with the render. Also, when loading the scene, put the logs to exclude this moment.
To give an exact answer why the transition does not work for you, you need to see more code. Where did you declare the scenes themselves and the transition between them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question