State Machine - RobotLegs 2
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.
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
Support Staff 1 Posted by Ondina D.F. on 29 Jun, 2014 05:28 PM
Hi Jono,
Neil's AS3StateMachine :
https://github.com/AS3StateMachine/AS3-Signal-StateMachine-for-Robo...
https://github.com/AS3StateMachine/AS3-StateMachine-Base
https://github.com/AS3StateMachine/AS3-Signal-StateMachine-for-Robo...
hth
Ondina
2 Posted by Jono on 29 Jun, 2014 11:13 PM
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.
Support Staff 3 Posted by Ondina D.F. on 30 Jun, 2014 03:37 PM
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.
Ondina D.F. closed this discussion on 11 Jul, 2014 08:10 AM.