Problem with reseting a timer

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey there,

I did a timer running down with the behavior constrain attribute (index 10).
When I reset the scene (change attribute back to 10, reset scene) before 10 seconds
are over, time is set to 0 and is not running, when I press again reset (button) time is set back to 10. Also when time is complete over and reset is pressed time is set back to 10.

Hope it is understandable :)

Greetings

Comments

  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I mean,

    is it because I am using an real attribute?

    It just makes me crazy because when timer is down to zero and reseted it just starts again, and when it is not down to zero, it sets first back to zero and next time to 10 again?
    It is just unlogical^^or am I confused at the moment?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Nobody an idea?
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Can somebody help me please :)
  • old_kipperold_kipper Member Posts: 1,420
    Are you using interpolate to drop your numbers? If so it maybe that because interpolate is not interupable you can't reset it as the valise is constrained to the interpolate that runs until it's finished.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Yes I am using interpolate :/ what should I use instead of this?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Alex0407 said:
    Yes I am using interpolate :/ what should I use instead of this?

    this is the kind of stuff you have to put in your intitial post. We cant help you unless you tell us what your doing and HOW your doing it.

    Now you could use a timer every 1 second change attribute to attirbute -1
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey I have a real attribute, and in my time actor I have a rule saying:

    interpolate to 0, duration 10.
    Display text prec(time.attribute), 2

    And in my reset button I just said when touch is pressed change
    attribute back to 10..
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay with a timer it works :) But how to show hundredth of seconds also?
    prec doesn't work..
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I tried ceil and prec expressions, both of them did not work.

    But nothing showed a hundredth of seconds ...
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    tenth of seconds would also be very nice :))
Sign In or Register to comment.