Could someone delete this post. Thanks
Assuming that’s the most direct exception error, apparently c is null. It might go into the constructor of the object Shit, but I can’t tell from what you gave us.
what files would i need to give you to get more help ?
It feels to me like the very first thing you do on seeing a runtime exception is to run to the forum to post urgent pleas for help, getting others do to all your debugging for you. NPEs are a very basic class of exception with very a straightforward procedure to debug them. Find out which reference is null, then find out why it was not set.
You need to show you did at least some basic investigatory work first. Start by paying attention to the line numbers in the traceback and looking at those lines.
^
At least you followed Pro tip #64, haha!
You need to look at the stack trace for the exception and find out where the problem occurs, add print statements if needed to discover why / what went wrong.
Probably you’ve called ‘addShit’ :persecutioncomplex: before defining x, y, or sprites. One of those will be null. If you can’t work it out from the exception, add some println statements in for debugging to check for null values.