HOME | DD

h3llbringer — Keyboard Movement Part 2

Published: 2005-02-04 19:43:03 +0000 UTC; Views: 1179; Favourites: 13; Downloads: 496
Redirect to original
Description Part 2.
Related content
Comments: 19

Eledora [2008-01-07 12:47:56 +0000 UTC]

This code is much more easier to use!

👍: 0 ⏩: 0

Yuyutsu-of-Kashi [2008-01-06 04:11:01 +0000 UTC]

Im having a problem..... Syntax error....

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Syntax error.
if (Key.isDown(Key.DOWN)) {

Total ActionScript Errors: 1 Reported Errors: 1

Help me please...anyone...i realy need this

👍: 0 ⏩: 0

xXTyrialXx [2006-08-17 02:56:47 +0000 UTC]

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Syntax error.
  if (Key.isDown(Key.DOWN)) {

Total ActionScript Errors: 1 Reported Errors: 1

👍: 0 ⏩: 0

blowupman [2005-07-19 14:18:21 +0000 UTC]

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Syntax error.
  if (Key.isDown(Key.DOWN)) {

Total ActionScript Errors: 1 Reported Errors: 1

It's soooooo frustrating cuz I copied excactly what it says in the tutorial, and it tells me an error, and when I test the movie, the movement is like the first tutorial!!!! HELP!!!!!!!!!!!!
onClipEvent (enterFrame) {
  if (Key.isDown(Key.DOWN)) {
     this._y += 7;
  }
  if (Key.isDown(Key.UP)) {
     this._y -= 7;
  }
  if (Key.isDown(Key.RIGHT)) {
     this._x += 7;
  }
  if (Key.isDown(Key.LEFT)) {
     this._x -= 7;
  }
}

👍: 0 ⏩: 1

h3llbringer In reply to blowupman [2005-08-26 02:55:27 +0000 UTC]

I don't see any problems with the code =\
Sorry I took a while to reply... did you manage to get it to work?

👍: 0 ⏩: 1

blowupman In reply to h3llbringer [2005-09-05 13:12:16 +0000 UTC]

Nvm, I got it to work

👍: 0 ⏩: 0

ziqh [2005-04-01 17:46:53 +0000 UTC]

God, I've been looking for instructions for that for ages. Thanks so much!

👍: 0 ⏩: 1

h3llbringer In reply to ziqh [2005-04-01 21:25:54 +0000 UTC]

Glad it helped.

👍: 0 ⏩: 0

Slayerserpent [2005-03-29 03:57:58 +0000 UTC]

i just get syntax erros

👍: 0 ⏩: 1

h3llbringer In reply to Slayerserpent [2005-03-29 22:17:23 +0000 UTC]

check over the code again, or tell me what the output says about the errors.

👍: 0 ⏩: 0

SoxyFoxer [2005-02-14 05:48:58 +0000 UTC]

Cool code, and the reference is nice too, I've been wondering what the numbers for other keys were.

👍: 0 ⏩: 1

h3llbringer In reply to SoxyFoxer [2005-02-14 21:24:53 +0000 UTC]

what other keys?

👍: 0 ⏩: 1

SoxyFoxer In reply to h3llbringer [2005-02-14 21:43:18 +0000 UTC]

keys like A and Q and such like on the keyboard

👍: 0 ⏩: 1

h3llbringer In reply to SoxyFoxer [2005-02-14 22:27:41 +0000 UTC]

oh... lol, i guess you didn't notice the link in the movie....
[link]
here you go.

👍: 0 ⏩: 0

alan-whit [2005-02-09 09:34:21 +0000 UTC]

would have been nice to have a link to part 1 but i will go and find it myself!!!!!

Alan

👍: 0 ⏩: 0

MG-Racoon [2005-02-06 17:55:33 +0000 UTC]

So fun to make it go in circles, I'll have to use this.

👍: 0 ⏩: 1

h3llbringer In reply to MG-Racoon [2005-02-12 18:14:53 +0000 UTC]

👍: 0 ⏩: 0

drish [2005-02-06 02:42:40 +0000 UTC]

so much misleading code.

👍: 0 ⏩: 1

h3llbringer In reply to drish [2005-02-12 18:21:00 +0000 UTC]

bleh.

👍: 0 ⏩: 0