So I'm trying to cycle through a string of images to make an object look like its rotating constantly, but I can't seem to get it working.
This is my current code:
I am keeping the Block2 image file the same for now but i want to make a string for it as well as soon as i get the first image working. Also I have question on how to access certain string values. For example, if an Object1 Intersects an object2 during the time a certain image is used in Object2, how do you access the same string value of image assuming Object 2 had a color change during the intersection and contains 2 string sets: one for normal color and one for change in color.
private String[] img3 = {"01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"};
...........
public void switchImage()
{
if (touchingBody && !isDown)
{
setImage("Block2.fw.png");
isDown = true;
play();
}
if (!touchingBody && isDown)
{
isDown = false;
for (int i = 0; i < 30; i++)
{
setImage(img3[i]+".png");
}
}

