Be a Supporter!

Scripting a player

  • 267 Views
  • 2 Replies
New Topic Respond to this Topic
Myridon
Myridon
  • Member since: Jan. 1, 2005
  • Offline.
Forum Stats
Member
Level 22
Blank Slate
Scripting a player 2008-10-06 12:19:24 Reply

hello, this probably sounds strange but does anyone have any insight into scripting a simple platforming character?

what I usually see is
UP ARROW: JUMP
LEFT ARROW: left
RIGHT ARROW: right
SPACE: jump

or
X: jump
Z: attack
Arrow buttons: move

I would liek to script the player to:
ARROW BUTTONS: move
NUMBER PAD 1: attack
NUMBER PAD 2: jump
NUMBER PAD 0: pause.

is the number pad off limits when it comes to scripting?


BBS Signature
GustTheASGuy
GustTheASGuy
  • Member since: Nov. 2, 2005
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to Scripting a player 2008-10-06 12:33:44 Reply

Just about all keys can be used in AS. Look up a keycode table.


BBS Signature
uyersuyer
uyersuyer
  • Member since: May. 15, 2002
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Scripting a player 2008-10-06 12:42:45 Reply

http://www.newgrounds.com/bbs/topic/4177 02


"Whoever said 'winners never quit' obviously never considered addicts." - Hoeloe

BBS Signature