Original Post
I''m setting up for an engine that will make games similiar to the old Kings Quest games. I''m going to make it so the player can click anywhere on the screen and he''d move to that place in a straight line. I just would like to figure out how to get these to points, lets say from 50,50 to 100,150 into a simple ratio for movement. For example, int this the character would move in a 1:2 ratio. to get to that location. I can do this in my head by subtracting 100-50, and 150-50 leaving me with a 50:100 ratio which I can easily simplify. How can I get the computer to be able to simplify in a similiar way? Thanks in advance.
--Muzlack