|
-
Prid - Outing
Too vague, could you post all the code for the character or even possibly the FLA file?
What you can try, though, is to right-click your jumping sound in your Library, pressing Linkage, ticking/checking Export for Actionscript, and typing in the Identifier field, jump_sound, pressing OK, and changing your code to this:
Actionscript Code:
onClipEvent (enterFrame) { if (!attacked) { if (jumped) { falling += 0.5; _y += falling; if (touchingGround) { jumped = false; } } else { if (Key.isDown(Key.UP)) { jumped = true; falling = -jumpHeight; this.gotoAndStop(4); jumpSound = new Sound(); jumpSound.attachSound("jump_sound"); jumpSound.start(); } } } if ((Key.isDown(Key.UP)) and (Key.isDown(Key.LEFT))) { this.gotoAndStop(4); } if ((Key.isDown(Key.UP)) and (Key.isDown(Key.RIGHT))) { this.gotoAndStop(4); } if ((!Key.isDown(Key.UP)) and (!touchingGround)) { this.gotoAndStop(4); } else if ((Key.isDown(Key.UP)) and (!touchingGround)) { this.gotoAndStop(4); } if ((_currentframe == 4) and (touchingGround)) { gotoAndStop(1); } } onClipEvent (keyUp) { if (!attacked) { gotoAndStop(1); } }
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|