playMaker

Author Topic: Stop an animation, set rotation - PLEASE HELP, I AM STUCK  (Read 2493 times)

Semihero

  • Playmaker Newbie
  • *
  • Posts: 6
Stop an animation, set rotation - PLEASE HELP, I AM STUCK
« on: June 20, 2013, 05:39:11 AM »
Dear Playmaker Community,

After spending a whole day and testing at least 8 different ways on finding out the solution I am turning to you. Anyone's suggestion would be very appreciated to find out the solution to the following problem.
1. There are 2 boxes on scene
2. The first box has a 75 frame animation on it (Play Animation State)
3. I want the second box clicked (on mouse down) to:
   3.1 Immediately stop animation of first box (Stop Animation State)
   3.2 Reset position of the first box to original position (Set Rotation State)
4. If the first box stopped rotating, everything is ok, by clicking on the second box, first turns back to original position. THE PROBLEM IS: If the pack is still rotating, clicking on the second box does nothing.
Thank you for your help in advance.
Balázs

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Stop an animation, set rotation - PLEASE HELP, I AM STUCK
« Reply #1 on: June 20, 2013, 05:59:45 AM »
Hi,

 it's likely that you need to come back to state where you check for mouse click. I guess the first time you click you move out of the state checking for mouse click and do not come back properly after.

bye,

 Jean

Semihero

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Stop an animation, set rotation - PLEASE HELP, I AM STUCK
« Reply #2 on: June 20, 2013, 06:08:48 AM »
Dear Jean,

Thank you for the hint, I already did that, after the Set rotation state I looped back with FINISHED event to the mouse click, but did not help.

Do you have other idea what the problem might be?
Thank you for your answer.
Kind regards,
Balázs

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Stop an animation, set rotation - PLEASE HELP, I AM STUCK
« Reply #3 on: June 20, 2013, 07:25:17 AM »
Hi,

 Without a look at your fsm, it's difficult to say, because it's likely just a problem of set up. Pm me if  you can share publicly your work, I'll have a look.

bye,

 Jean