playMaker

Author Topic: action wait until iTween finished[SOLVED]  (Read 3528 times)

Sjones

  • Full Member
  • ***
  • Posts: 203
action wait until iTween finished[SOLVED]
« on: September 04, 2012, 02:28:15 PM »
Just wondering if it was possible to have a bool set for the sate that an itween is in to wait till the itween has finished, I know that you can send event, however I am trying to keep things a bit cleaner as the fsm I am building is gona be big.
« Last Edit: September 05, 2012, 02:20:29 PM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: action wait until iTween finished
« Reply #1 on: September 05, 2012, 04:51:09 AM »
Hi,

 I am not sure I am following, firing an event when the itween is finished should do the work. Else can you give me a concrete example?

thanks,

 Jean

Sjones

  • Full Member
  • ***
  • Posts: 203
Re: action wait until iTween finished
« Reply #2 on: September 05, 2012, 11:58:22 AM »
I was just wondering if it was possible to hold the current state till the itween action had completed, so for example, within the same action you had an itween at the top, none of the other actions below it will run until the itween has completed.

I have done as suggested and sent to another state and isnt an issue for me currently

thanks :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: action wait until iTween finished
« Reply #3 on: September 05, 2012, 02:20:17 PM »
Hi,

Yes, states and transitions between states are meant to be used in this exact scenario.

bye,

 Jean