I already have the collision function working fine...now in the collision function i used target[i] (which at the time of testing i set i=0in which loads the image target[0] for my collision detection( I have 6 images target[0],target[1],target[2] etc). But now i want to use the collision function for all my array of images so i was wondering if i could get ("i" //variable) to equal to 0,1,2,3,4,5 which corresponds with all my images target[0],target[1],target[2] etc.So in the end all i will have in my collision function is target[i] which will cover collision for my 6 images.


its driving me nuts