Hello.

Imagine i want to slide a panel down to the y=200 on the screen. from y=0;

i do it: while(panel.pos_y<200){
panel.pos_y+=1*time_step;
wait(1);
}

But sometimes, i check that the final y its not 200, but 199 or something depending on the lag..

How can i avoid that? without the time_step, it gets shaky or slides very quickly.


check this little example with dynamic progress bar...
And you will se that after a while the panels will overlay, showing a one pixel overlay...
Open C file

Last edited by MMike; 02/22/10 02:36.