[solved] Finding the distance between 2 rectangles

Hey JGO, I’m having difficulty’s calculating the distance between 2 tiles in my game.
(Attempting to implement a A* Pathfinding system)

Rather noob question but I’m stumped.

Is there a method for java.awt.Rectangle that would allow me to calculate the distance beetween the 2 rectangles or any other util method like it?

Thanks for any help/feedback :slight_smile: