This site requires JavaScript, please enable it in your browser!
Greenfoot back
16jehrlich
16jehrlich wrote ...

2014/6/18

Checking For Objects

16jehrlich 16jehrlich

2014/6/18

#
So i am making a game and when the main player is "eaten" by the enemy and when this happens the game crashes. In order to fix this problem I want to check the world for the player object and then set the world to a game over screen. What is the code to check for the player object
danpost danpost

2014/6/18

#
You do not need to go to the world class to fix the problem. Instead of removing the player, just change worlds to the game over screen.
You need to login to post a reply.