How To - Rule for no move or touch
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
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
- self.motion.x = 0
- self.motion.y = 0
-- change self.Waketimer = 3
-- Timer, every 1 second
--- self.Waketimer to self.waketimer -1