Hi guys. For some reason every method for parent but random() seems to work for me. It's weird because I've tried other projects that also called parent.random() and they work fine. I use Eclipse to program.
Here's the error message:
Exception in thread "Animation Thread" java.lang.NullPointerException
at Video.<init>(Video.java:22)
at sketch_jun1.setup(sketch_jun1.java:13)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
And here is the class where the error is found.
import processing.core.PApplet;
import processing.core.PImage;
public class Video {
int w, h, x, y, littleX, littleY, bigX, bigY, savedXSpeed, savedYSpeed, circleW, circleH;
float xSpeed, ySpeed;
PImage myImage;
PApplet parent;
boolean tooBig = false;
public Video(PApplet p, int xx, int yy, PImage img) {