Countdown Timer and Picture Looping Questions
InsertCoin25
16 Mar 2013, 20:49I am in the process of creating a game using Quest and I have got both the countdown timer and the show picture to work fine. But, I have two questions regarding these options. First, I want the countdown timer to display in minutes and NOT just seconds. I am using the tutorial on the Quest website under help. Second, I have a animated .gif showing as a picture and want it to stop looping and clear the animated pic after it is done. Or have a pop-up window display the picture or animation, then close after done. Are these possible, and if so how would I achieve this?
Thank You
InsertCoin25
Thank You
InsertCoin25

jaynabonne
17 Mar 2013, 11:07For the first part (countdown in minutes), you could do this:
- Besides countdown, add an int attribute called "countdownmin" (for "minutes").
- Change "statusattributes" to "countdownmin=Countdown clock value is ! minutes"
- After you "set variable player.countdown = player.countdown - 1", also do:
set variable player.countdownmin = (player.countdown+59)/60
You still need to track seconds, but you convert it to minutes for display. The "+59" part means that the coundown won't hit zero until seconds hits zero.
For the latter part (hiding an image), you can either clear and redraw the screen without it (if you have that level of control), or you'd have to get more advanced to use HTML/CSS/Javascript to hide the element.
- Besides countdown, add an int attribute called "countdownmin" (for "minutes").
- Change "statusattributes" to "countdownmin=Countdown clock value is ! minutes"
- After you "set variable player.countdown = player.countdown - 1", also do:
set variable player.countdownmin = (player.countdown+59)/60
You still need to track seconds, but you convert it to minutes for display. The "+59" part means that the coundown won't hit zero until seconds hits zero.
For the latter part (hiding an image), you can either clear and redraw the screen without it (if you have that level of control), or you'd have to get more advanced to use HTML/CSS/Javascript to hide the element.
sonic102
18 Mar 2013, 02:41*Coin inserted!*
For the second part, you could convert the animation to a Youtube video and play that.
For the second part, you could convert the animation to a Youtube video and play that.
InsertCoin25
18 Mar 2013, 22:09sonic102 wrote:*Coin inserted!*
Thank You for the donation


InsertCoin25