So I've been messing with that fake 3d engine and I've hit a math snag.
I need to find the position between 2 sprites at a third sprites y position.
say you have a gird:
| | | | | | | | | |
And I Want a sprite to follow an imaginary line between two of these lines:
| | |o| | | | | | |
How do I calculate the pos between the 2 line sprites at the object sprites y pos?
I've tried the "distance(spriteline1.x,spriteobj3.y,spriteline2.x,spriteobj3.y)" but I'm not even sure if thats what I need here or if that is even correct.
Thanks for the help in advance, I've been stuck on this one for two days...