arneweise77
Programmer
Hello!
I need to move an image in a straightline in 2D, much like a ball movement for a 2D game. I have the coordinates for start and end but how do I get the ones in between. I want to move the image one pixel at a time so it moves smoothly.
I can´t find a function that returns each x,y for a line, is there one? or do I have to do mathematically(puh!)
Thanks!!!
I need to move an image in a straightline in 2D, much like a ball movement for a 2D game. I have the coordinates for start and end but how do I get the ones in between. I want to move the image one pixel at a time so it moves smoothly.
I can´t find a function that returns each x,y for a line, is there one? or do I have to do mathematically(puh!)
Thanks!!!