interrupting a counter
danshaw
Member Posts: 38
hey folks!
thanks so much for all the help so far...this game making sure is fun and challenging for a newbie...
so ive got a simple counter that counts from 0 to 2 each time touch is pressed on the actor and to go back to 1 if its pressed on the actor when on on 2 and to go back to 1 when pressed outside the actor also...to get it back to one....so basically if its counter is 2 and you press anywhere it goes back to one....what i want to do is have an action take place on a second actor if you press on it, only if the first one's counter is at 2....but the problem is that if its at 2 and i press on the second actor, the first thing that happens is that it goes back to 1 and the second actor doesn't get the action to happen.....
i want the second actors action to happen first and then have the first one set back to one, but with only one press...
does that make sense?
thanks
Dan
thanks so much for all the help so far...this game making sure is fun and challenging for a newbie...
so ive got a simple counter that counts from 0 to 2 each time touch is pressed on the actor and to go back to 1 if its pressed on the actor when on on 2 and to go back to 1 when pressed outside the actor also...to get it back to one....so basically if its counter is 2 and you press anywhere it goes back to one....what i want to do is have an action take place on a second actor if you press on it, only if the first one's counter is at 2....but the problem is that if its at 2 and i press on the second actor, the first thing that happens is that it goes back to 1 and the second actor doesn't get the action to happen.....
i want the second actors action to happen first and then have the first one set back to one, but with only one press...
does that make sense?
thanks
Dan
Best Answer
-
ingenious.applications Posts: 102Just going off a hunch, you would want to set/change an attribute to ____ when it is pressed AND it is at the 2 second mark.
Then, have a rule on your 2nd actor that says if attribute ___(from above) is ____, do this.....
Within that same rule on your 2nd actor, you should also then set the triggering attribute back to its normal/default position, so the end result you're looking for isn't triggered again when you don't plan on it.