URGENT QUESTION - I NEED TO GET THIS APP OUT BY TODAY :(

I don't know if its me, but New Zealand apps take MINIMUM 12 days to approve, so I need this app out before Apple shuts its doors. I recently found a bug where 'every' timers get screwed up after Playhaven Ads/Change Scene comes up. I just fixed this by ditching the timer rule and using when self.timer (my attribute) > self.time%0.1, to make it count every 0.1 seconds. self.timer was set at 0.05 (real attribute)

My question is, what equation would I use for every 3 seconds, every 5 seconds, etc? Is it just a simple self.time%3 and such? I don't have a strong idea on what the value of 0.05 on my timer means.

Comments

  • MeaningfulGamesMeaningfulGames Member, PRO Posts: 171
    I have a feeling 0.05 is just a constant in which the modulus checks with?
  • LiquidGameworksLiquidGameworks Anchorage, AKMember, Sous Chef Posts: 956
    Right, .05 is a constant to tells it to check. If you want it to be set for "every 3 seconds" it would be .05>self.time%3.
  • MeaningfulGamesMeaningfulGames Member, PRO Posts: 171
    Thanks. If I were to do a every random(3,6) seconds rule using modulus , how would I do it? It does not seem to work accordingly
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I haven't used that method but I'm guessing you would make the 3 an attribute and then randomize it by doing Change Attribute self.randomMod to random(3,6) and then checking to see if .05 > self.time%self.randomMod.

    Did you already try that?
Sign In or Register to comment.