Hi guys, I can't figure this out, any help would be grateful.
The situation:
I have a sprite with 3 instance variables:
-a is a Boolean and false as default
-b and -c are numeric
When an action is performed, in this case A Mouse click on the sprite with two conditions, when -a=false, a tween its going to be played, when -a=true, I'm playing another tween based on -b and -c. The problem I'm having its that when I click on the sprite, I set -a, -b and -c, but -a never sets the value. So I cannot run the second tween when I click back the sprite.
Thanks for any help.
My code goes like this:
+ Mouse: On Left button Clicked on keyBlade
----+ keyBlade: [X] Is dragged
-----> keyBlade: Set initialX to Self.ImagePointX("start")
-----> keyBlade: Set InitialY to Self.ImagePointY("start")
-----> keyBlade: Tween "pos" property Position to Self.ImagePointX("end"), Self.ImagePointY("end") in 0.5 seconds (Linear, destroy: No)
-----> keyBlade: Set dragged to True
----+ keyBlade: Is dragged
-----> keyBlade: Tween "slide-back" property Position to Self.initialX, Self.InitialY in 0.5 seconds (Linear, destroy: No)
-----> keyBlade: Set dragged to False
If I invert the comparative Its being set only the first time but never gets the other condition.
+ Mouse: On Left button Clicked on keyBlade
----+ keyBlade: Is dragged
-----> keyBlade: Tween "slide-back" property Position to Self.initialX, Self.InitialY in 0.5 seconds (Linear, destroy: No)
-----> keyBlade: Set dragged to False
----+ keyBlade: [X] Is dragged
-----> keyBlade: Set initialX to Self.ImagePointX("start")
-----> keyBlade: Set InitialY to Self.ImagePointY("start")
-----> keyBlade: Tween "pos" property Position to Self.ImagePointX("end"), Self.ImagePointY("end") in 0.5 seconds (Linear, destroy: No)
-----> keyBlade: Set dragged to True