Countdown Timer Question

Hey there!

Im currently working on a project where a countdown timer is used to set a time limit for a scene. However, the initial time from which the countdown starts is not always the same. I've tried using an integer attribute like so:

When attribute game.timer > 0
Timer: every second
Change attribute game.timer to game.timer - 1

This poses a problem, since I would need to give the attribute, game.timer, a certain value from which to start. My countdown timer must begin from a value set at a different/previous slide. Essentially, I would have a mini-game where the player would get a certain amount of points. These points would get "transformed" into a certain amount of time via a formula. It is this amount of (earned) time that I want the countdown to start from. Therefore, the countdown timer length varies.

I've tried plugging in the equation/formula into a change attribute action (I replaced the "game.timer - 1" above with "equation - 1"), but all that did was subtract one, then stop. I suppose this is because the value updates continuously back to the initial value and subtracts one from that again, creating an infinite loop. Ugh! How can I go about setting the countdown timer length to a value that is subject to change?

Hopefully I've explained it well enough :wink:

Cheers

Comments

Sign In or Register to comment.