Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在onAreaTouch()方法中我有一些修饰符。在延迟修改器中有一个onModifierFinished()方法,我想改变场景,如:
onAreaTouch()
onModifierFinished()
Scene scene = new Scene(); Game_Screen.this.getEngine().setScene(scene);
但什么也没有发生。我确信它涉及到这条线,但场景并没有改变。
我该如何解决这个问题?
确保您在 AndEngine 更新线程上进行这些更改:
runOnUpdateThread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub Scene scene = new Scene(); Game_Screen.this.getEngine().setScene(scene); } });