I want the color to return back to the "image1", but it remains "image2". I feel like it is a simple answer. Could you please help direct towards what I am doing incorrectly?
public void colorChange()
{
List<Body> bodies = getIntersectingObjects(Body.class);
for(Body b : bodies)
{
if(bodies != null)
{
setImage(image2);
play();
}
if(bodies == null)
{
setImage(image1);
}
}
}
