Progress Bars - Updating Current Value via Transcript
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Progress Bars - Updating Current Value via Transcript
Hello All-- a newbie here. With regards to progress bars, how do I update the current value using Transcript? I've attempted: set the current value of the progress bar "progressBar" to 25. There does not seem to be much documentation regarding this component.
Progress Bars - Updating Current Value via Transcript
Malte, thank you; that code worked like a charm (never would have thought of thumbpos). BTW, I'll be purchasing Arcade Engine once I get past the basics; I'd like to build some arcade-style games for my 3 and 5 year old. Thank you again!
Re: Progress Bars - Updating Current Value via Transcript
Hi toledor,toledor wrote:Malte, thank you; that code worked like a charm (never would have thought of thumbpos). BTW, I'll be purchasing Arcade Engine once I get past the basics; I'd like to build some arcade-style games for my 3 and 5 year old. Thank you again!
it might be helpful to get past the besics if you peek at the free eBook I wrote. It covers some of the basics of using Revolution and if you want to use arcadeEngine it might be very helpful. When you start creating your games and I can help in any way, please post questions in the arcadeEngine board of this forum.
I am eager to see what you come up with. My son is 2 now, so maybe he gets something to play, once he is old enough.
All the best,
Malte
Re: Progress Bars - Updating Current Value via Transcript
One thing that inevitably comes up: if you have (say) 10,000 things to do and you set the progress bar to have an endvalue of 10,000 and then set the thumbPosition of the progress bar to the number of items done, if the items go by quickly the limiting factor on speed will be the updates to the progress bar.toledor wrote:Malte, thank you; that code worked like a charm (never would have thought of thumbpos). BTW, I'll be purchasing Arcade Engine once I get past the basics; I'd like to build some arcade-style games for my 3 and 5 year old. Thank you again!
There are at least two ways to deal with this. Either do the math ahead of time to know how many pixels there are in the progress bar, and then update it only when the display has moved a pixel; or keep track of time, and only update when a certain amount of time has gone by.
Examples of both can be found in the archives for the use-revolution mailing list.