title: how to code an if statement to do with 2 sets of arrays?
body: <p>I have an array of sprite positions and I have got another array of rects. If the array of sprite positions is in any of the array of rects i want to be able to move all those sprites in those rects in a certain way. I'm just not sure on how to code an if statement to do with arrays.</p>