0.9.80 bug with mouse button release misfiring within a rule
Guardian
Member Posts: 54
So when I have a rule that is triggered when an attribute is true and within that I have a rule that is triggered when the mouse button is released.
What seems to happen is when the attribute is true the mouse button released is also triggered.
Can someone else verify this as an issue? ( I am very new)
What seems to happen is when the attribute is true the mouse button released is also triggered.
Can someone else verify this as an issue? ( I am very new)
Comments
Roy.
I don't think this is the issue.
The problem I am essentially having in psudo code is;
IF (attribute EQUALS true) AND (mouse released EQUALS true) THEN something.
Is the same as;
IF (attribute EQUALS true)THEN something.
The quoted stament above suggests the following;
IF (attribute EQUALS true) THEN something.
ELSEIF (mouse released EQUALS true) THEN something.
Is the same as;
IF (attribute EQUALS true) THEN something.
i complained about this issue a while ago , my complaining was with touch is released ,
You can check it here - http://gamesalad.com/forums/topic.php?id=29996
Basically:
if an actor had a rule , and inside it another rule - touch is released , every time the first rule triggered the touch released also triggered , even if you did not press the actor .
To overcome this , i made in my actor a self attribute - boolean - "I'm being pressed"
Then i have a rule , when touch is pressed change "I'm being pressed" to true
Timer - after 0.2 sec (RTC) - change "I'm being pressed" to false .
now in my problematic touch is released rule , i inserted it to a new rule saying
when "I'm being pressed" is true
When touch is released -
Do bla bla bla
That fixed the issue for me i hope you can do something out of it as well .
Play with some booleans to turn events on and off .
To be honest , I'm not sure if this is a bug or this is what suppose to happen , even in code .
Cheers
Roy.