ScratchData LogoScratchData
Back to theChAoTiC-TEST's profile

Does a point lie between two lines

THtheChAoTiC-TEST•Created February 2, 2019
Does a point lie between two lines
29
18
393 views
View on Scratch

Instructions

Demo (move with WASD, aim with the mouse) Useful for AI, tower defense games, shooters etc...

Description

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)

Project Details

Project ID283953456
CreatedFebruary 2, 2019
Last ModifiedMay 26, 2024
SharedApril 16, 2019
Visibilityvisible
CommentsAllowed