(Use "OR" instead of "AND")
(Make the conditions "<=" or ">=" instead of just "<" or ">")
if((bullet[0].xBullet >= aliens[x].xAlien - 2.0f) | (bullet[0].zBullet >= aliens[x].zAlien - 2.0f)){ if((bullet[0].xBullet <= aliens[x].xAlien + 2.0f) | (bullet[0].zBullet <= aliens[x].zAlien + 2.0f)) { //--Collision System.out.println("hit alien no. " + x); }}//--No Collision
I'm at work right now so i have no references and I'm did it out of my head, but I will help as much as I can.