Element.collide Check if two elements are colliding. How to use The code is self explanatory. It will return true if the elements collide or false if the elements don't collide. firstElement.elCollide(secondElement);