Collision detection between sqaures lazarus / 34-Windows ---------------------------------------------------------------------- guest62676 · 2018-06-23 13:34 Hey, so I know there may be similar threads here but none really helped me out by now so here I am. I've got 2 TShapes which are squares, one can be moved with the arrow keys. One of the TShapes is supposed to be an obstacle, a wall if u want. I tried around a good amount of time but can't seem to be getting anywhere. Can anyone help me here with an example maybe? Thank you ---------------------------------------------------------------------- Handoko · 2018-06-23 14:04 Hello yakumi, Welcome to the forum. Show us your code first, then we can better help you based on what you've already got. ---------------------------------------------------------------------- Bart · 2018-06-23 14:39 TRect.IntersectsWith(R: TRect): Boolean; ? Bart ---------------------------------------------------------------------- lainz · 2018-06-23 14:54 Quote from: Bart on June 23, 2018, 04:39:49 pmTRect.IntersectsWith(R: TRect): Boolean; ? Bart Good =)