Touch is released is remembered , is it supposed to be like that?
POM
Member Posts: 2,599
Hey ,
Having a problem with touch is released, i think it was mentioned before im not sure ..
For example -
Lets say you have an actor with a rule :
When touch is released AND when Self.rotation is 45
Change size.
Now your actor is now at 0 rotation , and you press it (and release) , nothing happens - good .
A minute later your actors rotation become 45 (for some reason)
The rule above triggers on! even if you dont press (and release) it!
Is it supposed to be like that ?
Roy.
Having a problem with touch is released, i think it was mentioned before im not sure ..
For example -
Lets say you have an actor with a rule :
When touch is released AND when Self.rotation is 45
Change size.
Now your actor is now at 0 rotation , and you press it (and release) , nothing happens - good .
A minute later your actors rotation become 45 (for some reason)
The rule above triggers on! even if you dont press (and release) it!
Is it supposed to be like that ?
Roy.
Comments
If:
Self.rotation is 45
AND
When touch is pressed
Second rule inside:
If:
When Touch is released
Then:
Change size
So if thats whats happening you can make a self attribute and change it to true when touch is pressed, Then rule when attribute is true AND touch is released And self rotation =45 (basically a different version of what TheMoonwalls said)
-change size
Also your sure its ALL condtions valid on your original rule correct
First , the methods you mentioned not working ,
@TheMoonwalls
Making when touch is pressed and in it when touch is released is not working and i dont see how can it ever work .
@JohnPapiomitis
i dont think you understood my point mate .
Anyway , i already have a workaround :
Made a boolean attribute - "Iv'e been touched"
Then -
When touch is pressed -
change "Iv'e been touched" to true .
Timer - After 0.2 sec (RTC)
CHANGE "Iv'e been touched" to false .
Then
When touch is released AND "Iv'e been touched" IS True
bla bla bla .
------------
But this is not the point , the point is that the actor is remembering that a touch is released from it and will trigger all the rules inside the "when touch is released" later on when the other triggers apply (like rotation 45)
I guess the only way to explain it is to send a project example to one of the chefs
Roy.