I'm attempting to create a small game and trying to insert a Game Over screen. This is my current code:
I have put this code into my Gamespace class and getting this error:
cannot find symbol- method getOneObjectAtOffset(int, int,java.lang.Class<Player>
Please help as I have tried many different methods and none of them work.
Thanks in advance!
1 2 3 4 5 6 7 8 9 10 | public void GameOver() { Actor Player = getOneObjectAtOffset( 0 , 0 , Player. class ); //This sets this to the Player class. //This is also my problem if (Player = null ) { getWorld().removeObject(Womboss); addObject(gameover, 1500 , 1500 ); //This creates the game over screen in the center of the world and removes the Womboss (boss) } } |