playMaker

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

Sjones

  • Full Member
  • ***
  • Posts: 201
    • View Profile
action wait until iTween finished[SOLVED]
« on: September 04, 2012, 11:28:15 AM »
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, 11:20:29 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15338
  • Official Playmaker Support
    • View Profile
Re: action wait until iTween finished
« Reply #1 on: September 05, 2012, 01: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: 201
    • View Profile
Re: action wait until iTween finished
« Reply #2 on: September 05, 2012, 08: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: 15338
  • Official Playmaker Support
    • View Profile
Re: action wait until iTween finished
« Reply #3 on: September 05, 2012, 11:20:17 AM »
Hi,

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

bye,

 Jean