playMaker

Author Topic: questions regarding sending events and other questions  (Read 1796 times)

roach_779

  • Playmaker Newbie
  • *
  • Posts: 13
questions regarding sending events and other questions
« on: September 17, 2013, 07:26:52 PM »
I'm creating a kid's book. It's a linear book and nothing fancy: Mouse click a trigger, objects plays an animation (using iTween), mouse click again, objects plays another animation, and repeat. I just started and is currently using Send Event on mouse click to send event to objects with animation. Here's my questions:

How do I stop animation from playing when play is pressed...and wait for mouse click event?

Once animation is completed, how do I wait for next mouse click and play next set of animation?

How do I disable mouse click while animation is being played?

What action do I use to add delay? eg. I want an intruction to be visible for a few second before it dissapear via mouse click.

Thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: questions regarding sending events and other questions
« Reply #1 on: September 20, 2013, 02:27:05 AM »
Hi,

 you can't really disable mouse events.

what you can do is implement an action that when receiving mouse events check for a global bollean flag "Animation is playing" or something and then not proceeding further that fsm if true.

 does that make sense?

bye,

 Jean