Touch is released issue
simo103
Member, PRO Posts: 1,331
I have some behaviors triggered by the 'Touch is released' rule. However when I reset the scene if someone fails to complete the task some of those behaviors trigger again.
I'm guessing that 'Touch is released' is still true. Anyone know anything about this and what I might do?
I'm guessing that 'Touch is released' is still true. Anyone know anything about this and what I might do?
Comments
Ok here is an idea i hope it will work for you :
create an attribute - self.IcanDETECTrelease - boolean- set to true
put the "release rule inside a rule that says :
when IcanDETECTrelease is true
if touch is released
(do something)
change IcanDETECTrelease to false.
____________________
now make another rule that say:
when touch is pressed
change IcanDETECTrelease to true
_______________________-
so basically what we are doing here is letting the actor detect the release only if first it was pressed ,
let me know if it worked fo you
Roy.
by the way i just posted promos for my game you can grab one
http://gamesalad.com/forums/topic.php?id=15511&replies=2#post-118351
Roy.
your code suggestion worked perfectly thanks. Also I purchased (since I had some left from xmas iTune gift cards) and did a review in the Cda app store.