ForumsProgramming ForumChanging Controls? AS2

1 3106
DapwnageG
offline
DapwnageG
205 posts
Nomad

What script would you use to be able to change the keys that correspond to an action? (with Action Script 2)

For instance, to move the player you use the arrow keys, but the person playing it could change them to whatever they want.

Help would be appreciated.

  • 1 Reply
Secretmapper
offline
Secretmapper
1,747 posts
Nomad

a clip handler, and a input text.
Make a control screen put the input text there. This is where the player can change the control scheme. Instance it to whatever you like.
Then for the action, put the instance name of the input text for the Key.down event.
This will check what the player inputed, and play a clip(for example your sprite running) when the player presses this.
Hope I helped.

Showing 1-1 of 1