Timer ignore Rule - Thoughts?

CluvCluv Member Posts: 229
edited May 2012 in Working with GS (Mac)
Hey,

I am developing an app for kids and I am using timers to time the speech for a question. For example: "I need [number] objects." This is cut into three sound clips, each set to go off after a certain amount of time. I set these timers inside a boolean that is on when a new problem is created, and then shut off afterwards. For some odd reason though, the timer continues to work even if the boolean is off. In other words, I set the boolean off and

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer
    @Cluv so does your rule look like this?

    When game.createNew is true
    --->Timer after 3.4 seconds
    ------->[do action]

    And then you have another actor that has something like this?

    When game.createNew is true [or some other condition, probably]
    --->Spawn actors
    --->Change attribute game.createNew to false

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    uncheck run to completion
  • CluvCluv Member Posts: 229
    @JohnPapiomitis: I did and it seems to make no difference. I even created a "for" timer outside of the timer I have set to .1 seconds longer:

    For timer 3.5 seconds{
    (After timer 3.4 seconds){
    Do action}}

    But it still seems to have the timer inside activated.... ag!
  • CluvCluv Member Posts: 229
    @Tatiang: yes. I just did a test on timers and it should work. I am pretty sure I must have made a mistake. What you thinking I should do?
  • CluvCluv Member Posts: 229
    @Tatiang: And then I want it to run the timer again.
  • CluvCluv Member Posts: 229
    Figured it out. It was the combination of a bad timer set, run to completion, and a wrong variable. ugh! Thanks you guys for your help.
Sign In or Register to comment.