!!! Please HELP With (Tricky) Logic PROBLEM!!!
Zenith_Gameworks
Member Posts: 310
I want to make an achievement in my game that if you don't move for a certain "x" amount of seconds, in a row and at the start of the scene, an attribute is changed from one value to another. I have been trying several rules mixed with a timer but the attribute is changed as soon as the scene starts, and not when I want it to. So far, I tried For 3 seconds, if self.motion.linear.velocity.x (something like that attribute) = 0, change attribute to 1 (from 0). I also tried: For 3 seconds, if self.position.x = 0, change the attribute. I have run to completion checked. Any advice would be much appreciated.
Comments
Hi @Zenith_Gameworks it sounds like you can use the scene Time in this situation...
So something like:
When Attribute scene.Time = 3 and yourActor.Position.X = (starting unmoved x pos.) and yourActor.Position.Y = (starting unmoved y pos.)
Change Attribute UnMoved to true
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Good stuff, glad it worked out for you. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User