Deleted1205226User Posted July 29, 2015 Share Posted July 29, 2015 Hello,I have an object containing 3 sequences of animation.Forward: Off stateLeft: Loop sequenceBackward: Clamp sequence (6 sec)The object is Off by default.When activated the Loop sequence plays, till activated again which will bring a message box with three choices.- choice 1: triggers the Clamp sequence (played 1 time) then it should go back to Loop sequence.- choice 2: goes back to loop- choice 2: goes offI can't make the Clamp sequence playing once then followed directly by the Loop sequence.I'm trying with timers, but it doesn't seem to work. (I don't even see the debug mssg)Any suggestion? Here's one of my script attempt: short isActivated ; start GameModeshort Button ; player's choiceshort PlayVideo ; animation statusfloat TimerBegin OnActivate Activate if PlayVideo == 0 Playgroup Backward 0 Set PlayVideo to 1 elseif PlayVideo == 1 ShowMessage PixChoice01Mssg set isActivated to 1 ;starts Game Mode endifEndBegin GameMode if isActivated == 1 set Button to GetButtonPressed if Button == 0 Playgroup Left 1 ; Clamp sequence is played if Timer < 6 set Timer to Timer + getSecondsPassed else Playgroup Backward 2 ; Loop sequence should start but doesn't set Timer to 0 set isActivated to 0 ; back to OnActivate Mode ShowMessage PixDebug01 endif elseif Button == 1 Playgroup Backward 2 ; Loop sequence set isActivated to 0 ; back to OnActivate Mode elseif Button == 2 Playgroup Forward 1 ; goes to Off state set PlayVideo to 0 set isActivated to 0 ; back to OnActivate Mode set Stage to 0 endif endifEnd Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts