To compare two types against each other, you could do this....
Then, call the "compareX(1,7)" function. Put in the numbers of the two you want to compare. so:
The function basically returns the difference between the two ship numbers passed across. You could do a compareY function the same way :o)
Function compareX(num,num1) counter = 0 For a.alien = Each alien counter = counter + 1 If counter = num then temp.alien = a.alien End If If counter = num1 then temp1.alien = a.alien End If Next Return temp\x - temp1\x End Function
Then, call the "compareX(1,7)" function. Put in the numbers of the two you want to compare. so:
If compareX(2,4) = 0 then Print" Aliens are in the same X positions" End If
The function basically returns the difference between the two ship numbers passed across. You could do a compareY function the same way :o)