Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Adjusting an action to specific starting and ending times

$
0
0
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?

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>