Hey there,
iam a beginner at coding and i wanted to code a clicker game but then this text showed up in the console:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at processing.core.PApplet.runSketch(PApplet.java:10852)
at processing.core.PApplet.main(PApplet.java:10620)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at processing.core.PApplet.runSketch(PApplet.java:10846)
… 1 more
Caused by: java.lang.NullPointerException
at processing.core.PApplet.rect(PApplet.java:12143)
at Money.(Money.java:50)
… 6 more
RuntimeException: java.lang.reflect.InvocationTargetException
thanks for sharing! I modified this code make something even cool - a cps counter. It basically counts the click (like you did) and then added a functionality show rank as per the player’s score. I want help in adding one more feature to save historical scores of the users. Can anyone share something similar?