hehe, you must think I'm a complete idoi--newbie cough
Yes, I know I can do that, the problem is that both those statement run the exact same function. I should have been more more clear about this:
if() else if()
run function
something like that, so I do not have to copy the same function twice.
A more correct condition statement would be: if(xy&!object2) or if(xy&object2) (otherwise the first condition would always return true for both conditions; don't ask me why they are differentiated)
I didn't get around to try the switch statement, so I'm going to give it a swing