I'm trying to use danpost's ScrollWorld and when I call getUnivX() I get a null pointer exception. I'm not sure why. Here's my code where I use it:
Thanks for any help!
protected void addGround() { int x = getUnivX(24); //Where I get the error for(Ground g : newGround()) //newGround() makes an ArrayList of Ground based on the width of the world (yes it works) { addObject(g, x, getHeight() - 24, true); x += 48; } }