playMaker

Author Topic: How to do canceling/inturrupt animations?  (Read 2908 times)

mojao

  • Playmaker Newbie
  • *
  • Posts: 6
How to do canceling/inturrupt animations?
« on: August 05, 2013, 12:59:22 AM »
Hello.Nice to meet you. My name is mojao.
Playmaker is great asset. Thanks.

I making action with smooth moves.
And i making my character by playmaker.
Then. i have a problem.

My character have some attack animations.
Now, i could created FSM "Idle" state to each attack action.
Each attacks have Loop to "Idle" state by FINISHED events, and animation controled by "Idle" state,so it can not do any action during attack.

So,I want to make system
(1)If animation is at canceling timing
(2)Press some attack button
(3)Cancel attack and do another attack

So , in summary, i want to make "always working animation listener".
If there is nice idea or keywords to search topic,im very glad .
Thanks your sincerely.
« Last Edit: August 06, 2013, 01:14:50 AM by mojao »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to do canceling/inturrupt animations?
« Reply #1 on: August 05, 2013, 04:02:56 AM »
Hi,

 Are you using the new Unity 4 Mecanim animation system or legacy animation system?

bye,

 Jean

mojao

  • Playmaker Newbie
  • *
  • Posts: 6
Re: How to do canceling/inturrupt animations?
« Reply #2 on: August 05, 2013, 04:47:32 AM »
Hi, dear jean. Thanks for your response. I feel very happy.

My using animation system is Smoothmoves.
It is a great asset for sprite based animation.

And Smoothmoves is compatible with playmaker , so i can get animation finish timing easily.

I think this asset is based on basic boneanimation mechanism on unity, so I would appreciate if i could get advice based on basic mechanism.

Thanks.  mojao

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to do canceling/inturrupt animations?
« Reply #3 on: August 05, 2013, 06:41:56 AM »
Hi,

 I don't own SmoothMoves, so It's difficult to provide help. Do you have a working sample provided with SmoothMoves that does have animation events?

bye,

 Jean

mojao

  • Playmaker Newbie
  • *
  • Posts: 6
Re: How to do canceling/inturrupt animations?
« Reply #4 on: August 05, 2013, 08:48:52 AM »
Dear, Jean. Thanks for your kindness. I'm very happy.

Thank you for your advise.
Yes, there is a Smoothmoves tutorial for Playmaker.
But, it is  entirely satisfactory...。 But Smoothmoves is nice asset.
Propabry my wish can explain without Smoothmoves, so I will challenge .Sorry for bother you.


(1)In this screen , my default status is "wait".
    "wait" status have button checker for character controll.

(2)When button pressed, my character status change to"State1-copy1"(sorry for bad name because prototype).
    When this state started , my character do animation.
    When animation finished(i can get finish timing) , status be "wait".
    But,in this circuit,"State1-copy1"dont have character controller.
    So it does not do another animation still finish.
 
So,my wish is "How to access status "wait" anytime regardless of present status".

Thanks you for hear me.!

Perhaps my plan  hard to do...? If it could do, im glad to hear advise.

Thanks you for your kindness!

MABManZ

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 125
    • MABManZ.com
Re: How to do canceling/inturrupt animations?
« Reply #5 on: August 05, 2013, 02:56:21 PM »
You have to set a condition in the animation state that will check if a new attack is triggered every frame, and then send an event that starts the new animation.

Basically your "wait" state conditions should also be included in the "state 1 copy" animation state, so it still receives input during this time and can trigger a new event.

Or separate the input to a different fsm, and send attack animations only if certain conditions are met using Set/Get FSM variable actions.
« Last Edit: August 05, 2013, 03:00:03 PM by MABManZ »

mojao

  • Playmaker Newbie
  • *
  • Posts: 6
Re: How to do canceling/inturrupt animations?
« Reply #6 on: August 06, 2013, 12:13:24 AM »
Dear MABManZ.Thanks.
But i noticed i can develop faster write script myself.and not use playmaker.
thanks.