I am trying to make an animation system to display images with a certain frame rate. While attempting to pass the function an array, it said I had not created an array or variable with that name. I tried adding square brackets to no avail. I also tried changing some syntax in the declaration of the array, declaring the PImages then sending them to the array and even putting the array in different scopes.
Declaration:
PImage idleDev[] = {loadImage("IdleDev1.png"), loadImage("IdleDev2.png")};
Use In Method:
animation(x, y, (int)frameRate/2, idleDev, 2, (float)playerWidth, (float)playerHeight);
Any ideas to fix this? It has been pissing me off for the past hour!