Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualburnt_casadilla

Posted 12 August 2012 - 05:22 PM

I made the mainBall object based on my MainBall class and put mainBall.paintMainBall(g) in my paint method and now it gives me another error:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at game.paint(game.java:251)
at game.update(game.java:227)

so its where i put the mainBall.paintMainBall(g) but the compiler doesnt see anything wrong with it

herpderp i forgot to create the object

MainBall mainBall = new MainBall(x, y, width, height);

that worked fine, but now it wont move. good lord this is frusterating

fixed it so that the coordinates of the mainBall change when i press the keys but it isnt being redrawn so the ball stays in one spot. almost!!!!

#3burnt_casadilla

Posted 12 August 2012 - 04:56 PM

I made the mainBall object based on my MainBall class and put mainBall.paintMainBall(g) in my paint method and now it gives me another error:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at game.paint(game.java:251)
at game.update(game.java:227)

so its where i put the mainBall.paintMainBall(g) but the compiler doesnt see anything wrong with it

herpderp i forgot to create the object

MainBall mainBall = new MainBall(x, y, width, height);

that worked fine, but now it wont move. good lord this is frusterating

#2burnt_casadilla

Posted 12 August 2012 - 04:55 PM

I made the mainBall object based on my MainBall class and put mainBall.paintMainBall(g) in my paint method and now it gives me another error:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at game.paint(game.java:251)
at game.update(game.java:227)

so its where i put the mainBall.paintMainBall(g) but the compiler doesnt see anything wrong with it

herpderp i forgot to create the object

MainBall mainBall = new MainBall(x, y, width, height);

that worked fine

#1burnt_casadilla

Posted 12 August 2012 - 04:44 PM

I made the mainBall object based on my MainBall class and put mainBall.paintMainBall(g) in my paint method and now it gives me another error:

Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at game.paint(game.java:251)
at game.update(game.java:227)

so its where i put the mainBall.paintMainBall(g) but the compiler doesnt see anything wrong with it

PARTNERS