Extend FSM?

Forums 💬 NodeCanvas ⚙️ Support Extend FSM?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15167
    eendhoorn
    Participant

      Hi!

      I’m using NodeCanvas’s FSM for my current project, and I love it!
      There’s one situation that I’m sure how to tackle best;

      I have a base character archetype that has an Idle, Walk and Jump state.
      Then other characters should be able to extend upon this FSM and add new transitions from these states to other states (Attack, Dash etc).

      I know I could place those Idle, Walk and Jump states in a SubFSM, but as far as I know you can only make transitions from the SubFSM, and not specifically from any child states.
      So a transition from Idle -> Attack or Walk -> Attack would be indistinguishable.
      If I could somehow make a transition from the child states like in the Animator, that would work best.

      What’s the best way to tackle this?

      Thanks!

      #15168
      Gavalakis
      Keymaster

        Hello,

        I am glad you enjoy using NodeCanvas!
        For this, I would suggest using the AnySate node, so that you can make transitions from any state (eg these 3 base states), to other new states. Would that work for you?

        Let me know 🙂

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.