Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find the pixels in a straightline 2

Status
Not open for further replies.

arneweise77

Programmer
Apr 25, 2002
46
SE
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!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top