Hey guys i am trying to make this work it works with out the function (or method as C# calls it) but it would require a lot of similar code copied and pasted over and over again how would i get this to work? (if im making any sense)
public void objCollision(object a, object b)
{
if (a.Bottom >= b.Top && a.Right >= b.Left && a.Left <= b.Right && a.Top <= b.Bottom)
{
MessageBox.Show("Collision Detected!");
}
}
i just want to be able to use objCollision(box1, box2); if that is possible...
thanks in advance!