State Machine - RobotLegs 2

Jono's Avatar

Jono

29 Jun, 2014 01:48 PM

Hi All,

I'm looking at using a state machine for the first time and I am using RobotLegs 2. I've looked for a basic example but have failed to find one. Can anyone share any links or suggestions?

Thanks.

  1. Support Staff 1 Posted by Ondina D.F. on 29 Jun, 2014 05:28 PM

    Ondina D.F.'s Avatar
  2. 2 Posted by Jono on 29 Jun, 2014 11:13 PM

    Jono's Avatar

    Hi Ondina,

    Thanks for the suggestions.

    I came across 2 of these - It appeared that links 1 and 3 that are for RL are just for version 1 as I could find no reference to version 2 an updates don't appear to have happened for 3+ years.

    The second link appears to not be dependant of any framework but the links to implementations are broken. There is also no basic example that I'm looking got either.

    I'll probably try use something like this one:
    https://github.com/cassiozen/AS3-State-Machine

    It has some simple instruction to get started, but it won't be fully integrated into RL as I would have liked, I'll probably put it in a service or model for my usage.

    Thanks.

  3. Support Staff 3 Posted by Ondina D.F. on 30 Jun, 2014 03:37 PM

    Ondina D.F.'s Avatar

    You're welcome, Jono.

    Joel's StateMachine is also framework agnostic, as far as I know:
    https://github.com/joelhooks/robotlegs-utilities-StateMachine

    His example:
    https://github.com/joelhooks/robotlegs-utilities-StateMachine/tree/...

    You can see how Joel is implementing the FSM in another (old) example:
    https://github.com/joelhooks/robotlegs-examples-UnionPlatformChatCl...

    Here, a port of Neil's state machine, but I don't know if it's any different from the original one. You'll have to investigate for yourself:
    https://github.com/DavidWhittingham/robotlegs-extensions-SignalStat...

    If you'd like to use a config class to initialize the state machine, look at Scott's solution from a discussion on this forum :
    http://knowledge.robotlegs.org/discussions/robotlegs-2/3418-finite-...

    Sadly, most of the robotlegs extensions, that were created by users, aren't up to date.

  4. Ondina D.F. closed this discussion on 11 Jul, 2014 08:10 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac