Be a Supporter!

just add a jump command

  • 382 Views
  • 6 Replies
New Topic Respond to this Topic
faillekid
faillekid
  • Member since: Feb. 24, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
just add a jump command 2006-02-16 16:05:44 Reply

I want my man to jump and this is his code.
I want to hit up and hit jump so im expecting this needs to go in there somewhere.
} else if (not (Key.isDown(Key.UP))) {
Plz dont tell me theres easier ways to do this or w/e cause i just want to do it this way for now.. i dont want to start from scratch... can anyone help me

onClipEvent (enterFrame) {

if (Key.isDown(Key.LEFT)) {

this._xscale = 100;

this.gotoAndStop("walk");

this._x -= 5;

}
if (Key.isDown(Key.RIGHT)) {

this._xscale = -100;

this.gotoAndStop("walk");

this._x += 5;

} else if (not (Key.isDown(Key.LEFT))) {

this.gotoAndStop(1);

}

}

faillekid
faillekid
  • Member since: Feb. 24, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to just add a jump command 2006-02-16 16:14:57 Reply

Someone please

faillekid
faillekid
  • Member since: Feb. 24, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to just add a jump command 2006-02-16 16:31:05 Reply

Can any1 provide help?

faillekid
faillekid
  • Member since: Feb. 24, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to just add a jump command 2006-02-16 16:36:52 Reply

At 2/16/06 04:31 PM, faillekid wrote: Can any1 provide help?

bump

DX14
DX14
  • Member since: Oct. 4, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to just add a jump command 2006-02-16 16:43:17 Reply

i can help

DX14
DX14
  • Member since: Oct. 4, 2005
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to just add a jump command 2006-02-16 16:45:01 Reply

i got my jump to work but the code is different to urs, u want it anyway?

Darkaxl
Darkaxl
  • Member since: Oct. 23, 2004
  • Offline.
Forum Stats
Member
Level 08
Blank Slate
Response to just add a jump command 2006-02-16 16:45:03 Reply

Woop my first ever Quad post, thankyou for letting me see this MASTERPIECE>
.


BBS Signature