Posted November 15, 2021 by Sohom Sahaun
New Additions
- Triggered transitions!
- Added new methods: .add_transition(), .add_wildcard_transition(), .add_reflexive_transition(), .transition_exists(), .trigger().
- Added new macros: SNOWSTATE_WILDCARD_TRANSITION_NAME, SNOWSTATE_REFLEXIVE_TRANSITION_NAME.
Important Change(s)
- .get_time() and .set_time() has the optional argument "seconds" set to "true" by default. This is parallel to GML's get_timer().
- Deprecated history methods have been removed.
Improvement(s)
- Events now accept arguments! This means we can do:
fsm.event("This", "is", "cool!");
- Fixed an issue with .inherit().
- Added JSDoc to all the methods.
Note
Please refer to the Documentation for the updated API.