slowing down the process
-
In the old days of basic we used to use a for loop to slow down the processing so the user could see changes that would happen too fast to see. (ie. changes to images in a game or data being displayed. I am trying to show some pictureboxe changes in sequence (not animation), but the process runs so fast I only see the last change, the same with playing several wav sounds I only hear the last one. there should be an easy way to delay the ballance of code from running so the user has time to see or hear the changes. Thanks,
-
In the old days of basic we used to use a for loop to slow down the processing so the user could see changes that would happen too fast to see. (ie. changes to images in a game or data being displayed. I am trying to show some pictureboxe changes in sequence (not animation), but the process runs so fast I only see the last change, the same with playing several wav sounds I only hear the last one. there should be an easy way to delay the ballance of code from running so the user has time to see or hear the changes. Thanks,
how about using timer
-
how about using timer
as I understand the timer's tick event, it runs whatever method you want at the set amount of ticks. But the rest of the code will be running meanwhile. did I not totaly understand, is there a way to pause the code till the tick event happens? Thanks for your reply.:)
-
as I understand the timer's tick event, it runs whatever method you want at the set amount of ticks. But the rest of the code will be running meanwhile. did I not totaly understand, is there a way to pause the code till the tick event happens? Thanks for your reply.:)
Do the opposite. Run the animation code only on the tick event.
-
Do the opposite. Run the animation code only on the tick event.
-
Thanks: Will have to think about that, it might require 40-50% of my code being inside the tick event. :( but will look at it. Thanks again
Argus2 wrote:
it might require 40-50% of my code being inside the tick event.
You can always call your code from the tick event, it needn't be literally "inside" it.
-
In the old days of basic we used to use a for loop to slow down the processing so the user could see changes that would happen too fast to see. (ie. changes to images in a game or data being displayed. I am trying to show some pictureboxe changes in sequence (not animation), but the process runs so fast I only see the last change, the same with playing several wav sounds I only hear the last one. there should be an easy way to delay the ballance of code from running so the user has time to see or hear the changes. Thanks,
-
In the old days of basic we used to use a for loop to slow down the processing so the user could see changes that would happen too fast to see. (ie. changes to images in a game or data being displayed. I am trying to show some pictureboxe changes in sequence (not animation), but the process runs so fast I only see the last change, the same with playing several wav sounds I only hear the last one. there should be an easy way to delay the ballance of code from running so the user has time to see or hear the changes. Thanks,