Timer not working!

DigiChainDigiChain Member, PRO Posts: 1,288
edited November -1 in Working with GS (Mac)
Hi, I can't get a timer to work. I'm pretty sure all is correct - but nothing. Are there any known probs with timers?

Here's what I'm doing.

I have an actor and a rule:

-when touch is pressed...
Timer - After 2 seconds (run to completion ticked) - change attribute x to 1.

It doesn't work, the attribute doesn't change. However without the timer it changes the attribute fine.

Ideas?

Comments

  • dre38wdre38w Member Posts: 79
    That's strange because it works fine for me. But I had to click once and not click again for it to change otherwise no matter how many times I clicked it wouldn't change unless I stopped and waited. I used an integer which is what I'm assuming you were using? Or am I wrong?
  • dre38wdre38w Member Posts: 79
    You'd have to make another attribute telling it to only press once. I don't know if this is the right way since I'm no guru but it worked for me.

    attribute boolean stopPressing
    attribute X

    Rule
    When stopPressing is False
    Rule
    touch is pressed
    stopPressing is True
    Timer
    X to 1
  • DigiChainDigiChain Member, PRO Posts: 1,288
    Cheers. I gave up in the end and found a work around that didn't use a timer.
    I'm always having problems with them, i've no idea why or what I'm doing wrong!
  • dre38wdre38w Member Posts: 79
    Ah, I see. Well good thing you found a work around at least.
Sign In or Register to comment.