trying to make an array if images.
in
Programming Questions
•
2 years ago
Hey guys.
just a quick question; how do you make an array of loaded images? I'm trying to make one and it says that image is not a viable declaration for my array. My array looks something like this:
just a quick question; how do you make an array of loaded images? I'm trying to make one and it says that image is not a viable declaration for my array. My array looks something like this:
image[] cars= new image[3];
cars[0] = loadImage("redcar.jpg");
cars[1] = loadImage("bluecar.jpg");
cars[2] = loadImage("yellowcar.jpg");
what am I doing wrong here?
1
