blackhornet
Err after some testing I still can't get what I want. Sorry, I'm really bad at math!
This function allows me to get a -1/1 position based on the 0,0 in the canvas. I've been tweaking it to get a -1/1 position based on two objects, but I don't see how...
Edit: Nevermind, got it. I swear I tried it before but it didn't work, tried it again now and it did...
I used round((player.X-door.x)/abs(player.x-door.X))