In a picturebox I want to simulate the movement of an object from place A to place B, so that it takes exactly t seconds.
It currently takes a time much less than t, so it all consists in slowing it down by the right amount. I thought I'd do it by increasing the number of intermediate positions plotted but it must be independent of the computer in which the code runs.
It's typical to use timer controls to start some action at a specific time, but would a timer be the appropriate tool to control the overall time? Or would the GetTickCount function be more useful? What do you guys think the right approach should be?
It currently takes a time much less than t, so it all consists in slowing it down by the right amount. I thought I'd do it by increasing the number of intermediate positions plotted but it must be independent of the computer in which the code runs.
It's typical to use timer controls to start some action at a specific time, but would a timer be the appropriate tool to control the overall time? Or would the GetTickCount function be more useful? What do you guys think the right approach should be?