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

2016/5/2

NullPointerException

LifeAchemist LifeAchemist

2016/5/2

#
Hi, recently I have been working on a game where my sword is shooting object, and when it hits a dragon, the dragon should disappear. As well, once I kill 10 dragons, i will switch to a new world, but whenever I hit 10 kills, I get the NullPointerException pop up in the terminal window. If anyone has an idea why this is occurring, I would appreciate the help.
danpost danpost

2016/5/2

#
Will need to see the code (not just the error line, but, at minimum, the method that the error occurred in).
You need to login to post a reply.