I am using an Arduino Esplora to make a game in processing where a picture of a plane moves side to side along the bottom of the background using the slider value. My idea was to have enemies dropping from the top of the screen and hit them using a picture of a flaming bullet. A bullet would fire when button 1 was pressed. I was making the plane move well and had just made a way for there to be more than one bullet on the screen at any one time and move up the screen. However, when I tried to run the program, it came up with an error on the line that received the values from the Arduino.It had never been a problem before. It is ArrayIndexOutOfBoundsException: 0. Any help is appreciated as it is for school. Sorry about the unnecessary commenting. I got lots of the parts of the program from various examples we were given when we were learning to programme on MadMaker.
