Je moet ingelogd zijn om te stemmen.
onClipEvent (load) { speed = 10; jumpHoogte = 0.4; isJumping = false; jumpSpeed = 0; startY = _y; } onClipEvent (enterFrame) { if (isJumping) { _y += jumpSpeed; jumpSpeed += jumpHoogte; if (_y >= startY) { _y = startY; isJumping = false; speed = 10; } } else { if (Key.isDown(Key.SPACE)) { isJumping = true; jumpSpeed = -10; speed = 5; } } if (Key.isDown(Key.LEFT)) { _x -= speed; this.feet.prevFrame(); this.head.nextFrame(); } if (Key.isDown(Key.RIGHT)) { _x += speed; this.feet.nextFrame(); this.head.nextFrame(); }
onClipEvent (load) { speed = 10; jumpHoogte = 0.4; isJumping = false; jumpSpeed = 0; startY = _y;}onClipEvent (enterFrame) { if (isJumping) { _y += jumpSpeed; jumpSpeed += jumpHoogte; if (_y >= startY) { _y = startY; isJumping = false; speed = 10; } } else { if (Key.isDown(Key.SPACE)) { isJumping = true; jumpSpeed = -10; speed = 5; } } if (Key.isDown(Key.LEFT)) { _x -= speed; this.feet.prevFrame(); this.head.nextFrame(); } if (Key.isDown(Key.RIGHT)) { _x += speed; this.feet.nextFrame(); this.head.nextFrame(); }