Demo (move with WASD, aim with the mouse) Useful for AI, tower defense games, shooters etc...
Script for detecting if a point (x3,y3) lies between two coordinates (x,y and x2, y2) The 'leeway' variable is how 'precise' the difference has to be, having a higher number will make it 'stick' more to the target (suggest no lower than 1)