STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228114
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/82661997?noj=FRM82661997-9DC" width="1" height="1"></div>

game.swf

This is the info page for
Flash #142308

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 2 game_sparks { } movieClip 7 { } movieClip 8 player_falling { frame 1 { stop(); } } movieClip 10 { } movieClip 18 { frame 1 { play(); } frame 9 { play(); } } movieClip 20 { frame 3 { stop(); } } movieClip 22 { } movieClip 36 { frame 23 { stop(); } } movieClip 38 { frame 1 { stop(); } } movieClip 39 player { } frame 2 { function randRange(min, max) { var v1 = Math.floor(Math.random() * (max - min + 1)) + min; return v1; } function sparks(mc, type) { var v9 = 10; var v8 = 10; var v7 = 60; var v6 = 'game_sparks'; var v4 = 2; var v5 = 0; while (v5 < v7) { var v3 = _root.attachMovie(v6, 'fragment' + v4, v4); _root.attachMovie(v6, 'fragment' + v4, v4); v3._x = 0; v3._y = 389; v3.xspeed = randRange(-1, 1) / randRange(-5, 5); v3.yspeed = randRange(-4, -1); v3.cacheAsBitmap = true; v3._alpha = randRange(50, 100); sparking = false; sparkswitch = 4; v3.onEnterFrame = function () { this._x += this.xspeed; this._y += this.yspeed; this._height = randRange(3, 4); this._width = randRange(3, 4); this._alpha -= 3; this.yspeed += 1; this.gotoAndStop(3); if (this._y > 700) { if (sparking == true) { sparkswitch = randRange(1, 100); if (sparkswitch == 4) { sparking = false; } this._x = randRange(player._x - 3, player._x + 3); this._y = player._y - player._height; this.yspeed = randRange(-10, -1); this._alpha = randRange(50, 100); if (_root.env.hitTest(this._x, this._y, true)) { --this._y; this.yspeed *= -1; } } else { sparkswitch = randRange(1, 2000); if (sparkswitch == 4) { sparking = true; } this._alpha = 0; } if (sparks_on == false) { this.removeMovieClip(); } } }; v5++; v4++; } } } frame 3 { stop(); friction = 0.9; gravity = 1; zone = 1; player.faceing = 'R'; player.power = 5; player.yspeed = 0; player.xspeed = 0; player.maxspeed = 1; player.jump = 0; player.jumpdown = false; player.jumpNumber = 5; player.jumppower = 10; player.glideDown = 0; player.glideSpeed = 0.5; player.airTime = 0; player.fallenTimer = 0; player.action = false; player.fight = false; player.grabbed = false; player.fallen = false; player.grounded = false; frame.power = 1; frame.yspeed = 0; frame.xspeed = 0; frame.offSet = 100; cameraGroundX = camera._x; cameraGroundY = camera._y; cameraSpeed = 0; cameraPanSpeed = 1; sparks_on = true; sparking = false; brute.onEnterFrame = function () { this._x += this.xspeed; if (player.fight == true) { this._visible = true; if (player._x > this._x) { this.facing = 'R'; this.xspeed = 2; if (this.hitTest(player._x, player._y, false)) { player.grabbed = true; player._visible = false; player._x = env.home._x + 140; player._y = env.home._y - 5; } } else { this.facing = 'L'; this.xspeed = -2; if (this.hitTest(player._x, player._y, false)) { player.grabbed = true; player._visible = false; player._x = env.home._x - 140; player._y = env.home._y - 5; } } if (this.facing == 'L') { if (this._x < env.home._x - 122) { if (player.grabbed == false) { this.gotoAndStop(1); } else { this.gotoAndStop(3); } } else { if (player.grabbed == false) { this.gotoAndStop(2); } else { this.gotoAndStop(4); } } } else { if (this._x > env.home._x + 122) { if (player.grabbed == false) { this.gotoAndStop(11); } else { this.gotoAndStop(13); } } else { if (player.grabbed == false) { this.gotoAndStop(12); } else { this.gotoAndStop(14); } } } if (this._x > env.home._x + 123) { this._x = env.home._x + 123; player._visible = true; player.grabbed = false; this.xspeed = 0; } if (this._x < env.home._x - 123) { this._x = env.home._x - 123; player._visible = true; player.grabbed = false; this.xspeed = 0; } } else { this._visible = false; this._x = env.home._x; this._y = env.home._y; } if (_root.env.home.hitTest(player._x, player._y, true)) { player.action = true; player.fight = true; } if (player.fight == true) { if (_root.camera.hitTest(this._x, this._y, false) == false) { player.fight = false; } } }; frame.onEnterFrame = function () { camera._x = this._x; camera._y = this._y; camera._visible = false; this._visible = false; this.xspeed *= friction; this.yspeed *= friction; this._y += this.yspeed; this._x += this.xspeed; clouds_1._x = this._x + this.xspeed / 10; clouds_2._x = this._x + this.xspeed / 100; atmosphere._x = this._x - 350; if (this._x < player._x - this.offSet) { this.xspeed += this.power; } if (this._x > player._x + this.offSet) { this.xspeed -= this.power; } if (this.xspeed < 0.1 and this.xspeed > -0.1) { this.xspeed = 0; } if (this._y + this.offSet * 3 < player._y) { this.yspeed += this.power; } if (this._y > player._y) { this.yspeed -= this.power; } if (this.yspeed < 0.1 and this.yspeed > -0.1) { this.yspeed = 0; } if (player.glideDown > 15) { this.power = 0.6; } else { if (_root.camera.hitTest(player._x, player._y, false)) { this.power = 0.6; } else { this.power = 1; } } if (player._y > camera._y + camera._width / 2) { player.fallen = true; player.action = true; } if (this._y > 350) { this._y = 350; } if (this._x - 350 < -1000) { this._x = -650; } if (this._x + 350 > 1700) { this._x = 1350; } }; env.onEnterFrame = function () {}; player.onEnterFrame = function () { if (this.grabbed == false) { this.xspeed *= friction; this.yspeed += gravity; this._y += this.yspeed; this._x += this.xspeed; } if (_root.env.hitTest(this._x, this._y + 5, true)) { this.grounded = true; this.jumps = this.jumpNumber; this.airTime -= 0.1; } else { this.grounded = false; this.airTime += 0.1; } if (this.action == false) { if (Key.isDown(39) and Key.isDown(37)) { } else { if (Key.isDown(37)) { this.faceing = 'L'; this.xspeed -= this.power; } if (Key.isDown(39)) { this.faceing = 'R'; this.xspeed += this.power; } } if (Key.isDown(32)) { if (this.jumpdown == false) { if (this.grounded == true) { this.yspeed -= this.jumppower; this.jumpdown = true; this.grounded = false; } } } else { if (this.grounded == true) { this.jumpdown = false; } } } else { if (this.fight == true) { this.gotoAndStop(1); } } if (this._y > 700) { this._x = 300; this._y = 300; } if (this._x > 1200) { if (this.fallen == false) { if (this.grounded == true) { sparks(player, currentEffect); this.action = true; if (this.faceing == 'R') { this.gotoAndStop(5); } else { this.gotoAndStop(15); } this.fallen = true; } } } if (this.action == true) { } else { if (this.grounded == false) { if (this.yspeed > 0) { if (this.faceing == 'R') { this.gotoAndStop(4); } else { this.gotoAndStop(14); } } else { if (this.faceing == 'R') { this.gotoAndStop(3); } else { this.gotoAndStop(13); } } } else { if (this.faceing == 'R') { if (this.xspeed < 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } else { if (this.xspeed > -1) { this.gotoAndStop(11); } else { this.gotoAndStop(12); } } } } if (this._x < rightBound) { this._x = rightBound; this.xspeed = 0; } if (this._x > leftBound) { this._x = leftBound; this.xspeed = 0; } this.forecast_x = this._x + this.xspeed; this.forecast_y = this._y + this.yspeed; if (_root.env.hitTest(this.forecast_x + this._width / 2, this.forecast_y - this._height, true)) { --this.forecast_x; ++this.forecast_y; this.xspeed = 0; if (grounded == false) { this.yspeed = 1; } } if (_root.env.hitTest(this.forecast_x - this._width / 2, this.forecast_y - this._height, true)) { ++this.forecast_x; ++this.forecast_y; this.xspeed = 0; if (grounded == false) { this.yspeed = 1; } } while (_root.env.hitTest(this.forecast_x, this.forecast_y, true)) { --this.forecast_y; this.xspeed = 0; this.yspeed = 0; } while (_root.env.hitTest(this.forecast_x, this.forecast_y - this._height, true)) { ++this.forecast_y; this.yspeed = 0; } while (_root.env.hitTest(this.forecast_x - this._width / 2, this.forecast_y, true)) { ++this.forecast_x; this.xspeed = 0; } while (_root.env.hitTest(this.forecast_x + this._width / 2, this.forecast_y, true)) { --this.forecast_x; this.xspeed = 0; } if (this._x < -1000) { this.xspeed += 5; } if (this._x > 1500) { this.xspeed -= 5; } if (this.xspeed < 0.5 and this.xspeed > -0.5) { this.xspeed = 0; } if (this.xspeed > this.maxspeed) { this.xspeed = this.maxspeed; } if (this.xspeed < -this.maxspeed) { this.xspeed = -this.maxspeed; } if (this.yspeed < 0.5 and this.yspeed > -0.5) { this.yspeed = 0; } if (this.yspeed > 6) { this.yspeed = 6; } if (this.yspeed < -20) { this.yspeed = -20; } this._x = this.forecast_x; this._y = this.forecast_y; }; } movieClip 41 { } movieClip 43 { } movieClip 45 { frame 1 { stop(); } } movieClip 58 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } movieClip 60 { }




http://swfchan.com/29/142308/info.shtml
Created: 27/10 -2018 16:19:59 Last modified: 27/10 -2018 16:19:59 Server time: 09/05 -2024 20:56:49