Skip to main content
Manic-Mars
Known Participant
March 8, 2017
Question

State Machine Player Movement?

  • March 8, 2017
  • 1 reply
  • 374 views

So I was looking in to things and I think I might make my player movement a state machine. But I can't find any for movement that go over what I need heres what I found: actionscript 3 - Action Script 3, character selection - Stack Overflow  (one of the answers on the page but not the selected one)

This is my adaptation of the state machine class:

[ActionScript 3] citymain - Pastebin.com

and then in the character class:

[ActionScript 3] character class - Pastebin.com

Im not sure how state machines work, actually. So I don't know if I used it right. I know I get a label for the button press, if I do it right... Anyway any help would be appreciated.

heres an other type I attempted: (less complex)

[ActionScript 3] Level code - Pastebin.com

Message was edited by: Maya Stringer

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 9, 2017

the more links in a message, the less likely you'll get a response.  also, asking that files be downloaded significantly decreases the likelihood you'll get a response.  and the more nebulous a message (eg, 'state machine player movement'), the less likely you'll get a response.

Manic-Mars
Known Participant
March 9, 2017

Non of those require download. They are just an easier way to view the large quantity of code I have. (plus under the code markers they don't have one for as3, they have c++ and c# whatever those are Wait is c# cs3?) Anyhow it's irrelevant as a newer problem has arisen and its taken priority. I'll probably delete or edit this question after I post the new one.