Is kinda weird because it just detects if the purple dot is inside the rectangle but will probably work for a platformer, if you are going to use this use the one in the sprite that is called "Use This" The distance to a line is from @alltrue 's capsule rectangle collision project all else by me @-Mr-Click-