I have 2 classes in my Package
1.GUIControll (run when application starts)
2. Main (thinks like the Camera, Player etc.)
I will start the Main.java when i press the start-button
[xml]<interact onClick="start()" />[/xml]
code in the GUIConroll.java
[java]public void start(){
//What must come in here? (to start main.java and close GUIControll)
}[/java]
stuff that loads the game, and sends nifty to an empty screen.
Usually if you ask from a general game perspective, then this start button removes the GUI and starts a state the contains the game.
Does you GUIControll class extends ScreenController?
what more info do you need?
[java]Main main = new Main();
nifty.goToScreen(“end”);[/java]
assuming you have a screen called “end” which displays nothing
ok, i think i discribed my problem not rigth.
My Problem²
When the the start-screen of my GUI is diplayed
i can move the player, shot and everything else,
but the start screen is hidding this. I will that the
sence is starting when i press the button and not
when i open the game.