State Machine Patterns

NodeCanvas Forums General Discussion State Machine Patterns

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11238
    rixter757
    Participant

    Hi all,

    I am writing a turn-based game, researching a simple state machine. I haven’t used NC yet, mostly FC and converting to code as I go. Need to hit myself a kick to work some more hours!!

    OK so I’m thinking for my needs I need a simple state machine. I see a few different patterns out there, thought I would post the easiest and ask if anyone could share a similar design from NC.

    I modified the above pattern to include the “lastState” control variable because I can’t figure how it would work without it.

    Can anyone suggest the NC equivalent? Any interest in working on this to come up with a few different types?

    Rix

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.