NullPointerException error

please make sure the 10 images are named correctly and are in the data folder of your Sketch

the naming is case sensitive and it’s a different whether it’s jpg or jpeg or JPG …

the file names must be exactly the names in the code such as left[0]=loadImage("first.jpeg");

for example, here you have jpeg, the other names are with jpg

1 Like