How To - Rule for no move or touch

OrbInteractiveOrbInteractive Member Posts: 14
edited January 2013 in Working with GS (Mac)
I'm trying to create a rule that basically says, "If actor X has not moved(no velocity), or been touched for 3 seconds, then do blah.. Seems like it would be easy, but maybe I'm just too tired to see it. Thoughts?

Comments

  • ChakkuChakku Member Posts: 1,513
    @Durauk

    Make a self integer attribute called touchtime, and say every 1 second, change attribute touchtime to touchtime+1, and if touch is pressed, change attribute touchtime to 0.

    Hope this helps
    Chakku
  • OrbInteractiveOrbInteractive Member Posts: 14
    Well, think I just got it.. rule
    - self.motion.x = 0
    - self.motion.y = 0
    -- change self.Waketimer = 3
    -- Timer, every 1 second
    --- self.Waketimer to self.waketimer -1

Sign In or Register to comment.