timer issue
deej011
Member Posts: 159
i have a timer that changes an attribute from true to false after 0.1 seconds its seems to work fine in the creator but not when I'm previewing on my phone. any ideas?
Comments
Any ideas?
Does it work when you check the "Run to completion" box?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
That doesn't make a difference for this instance is 0.1 of a second too quick? Is there a minimum that it needs to be for it to register
Maybe dump the timer and use the clock, for example when self.time>0.1.
you could also use the math function MOD to alternate between true and false. google "Timers are for Chumps" GS optimisation tips. Great article, very useful
If it's working fine in creator but not on device, it's possibly an issue of something overriding it. Do you have any other behaviours that turn it back from false to true?
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
it only turns to true when u defeat an enemy than after 0.1 second it changes back to false. And than inside the enemy I have a rule saying when attribute is true change table value. In the creator it works fine but on my iPhone it doesn't work unless I have it set to after 1 second
What is the condition that triggers the change to true? Could it still be true after 0.1s?
It sounds like whatever condition is causing the timer to change to true is still running/valid when 0.1s has elapsed.
We're really going to need to see your logic to offer much more help, though.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support