- Move your mouse over a line, see if collide is "Yes". - Space to regenerate all lines - There's a variable in this called 'slope y detection leniency' which is basically just how close it has to be to qualify as colliding. - Most of the script names have 'Y' in the title which isn't really accurate anymore, it now checks with Y and X, but the old version only used Y and I didn't really want to change all the titles so... - All of my projects use a list reading system that I think is inefficient, but I haven't looked to see if there are any better ones around, so it could be good, or could be bad, im not sure.
- Generates a line with pen, uses Y=Mx+B to find intersect, if the intersect is valid and also matches the position of the mouse/player Y (with some leniency) it will set 'Collide?' to "Yes". If not it checks with X = y-b/m to see the theoretical x position of the line and compares it to the mouse x, if it matches (with leniency) then it sets 'Collide?' to yes - Not a lot of code but took a surprising amount of time to figure out.