Hello -
I wrote this script to trigger two different animations when a value is changed via datalinq.
dim Ani1Out, Ani1In as xpSceneDirector
scene.GetSceneDirectorByName("Item1Out", Ani1Out)
scene.GetSceneDirectorByName("Item1In", Ani1In)
if self.text = "1" then
Ani1In.playrange(0, Ani1In.duration)
else if self.text = "2" then
Ani1Out.playrange(0, Ani1Out.duration)
end if
The Item1Out plays when the value is changed away from 2 not changed to 2. IE. if I go from 1 to 2 nothing plays but if I go from 2 to 1 Ani1Out = Item1out plays. Can someone explain why its not playing when the value changes to 2?
Thanks!