State switch

From Whirled Club Wiki
Revision as of 09:15, 4 September 2018 by Whirled vox (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Alright, here's how to make a state switch by using an action.

What you're going want to do is go to your action. Make another layer, and go to the AS part of it, and enter this code:

_ctrl.setState("StateNameHere");

Replace "StateNameHere" with the name of the state you want the action to switch to.

And that should do it. Enjoy your state swtiches to your heart's content.