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

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

Sonic lazer fight demo.swf

This is the info page for
Flash #60529

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


Text
with sonics new rocket boots,
he takes to the sky to fight...

up,down,
left,right

Ctrl =fire

play

Game over

Replay?

ActionScript [AS1/AS2]

Frame 1
stop();
Frame 2
numEnemy = 5; i = 2; while (i <= numEnemy) { enemy1.duplicateMovieClip("enemy" + i, i + 100); i++; } score = 0;
Instance of Symbol 10 MovieClip "mainGround" in Frame 2
onClipEvent (load) { ground.duplicateMovieClip("ground2", 100); ground2._x = ground._x + ground._width; groundStartx = this._x; groundSpeed = 10; } onClipEvent (enterFrame) { if (_root.spaceship.scrollStart) { this._x = this._x - groundSpeed; if (this._x <= (groundStartx - ground._width)) { this._x = groundStartx - groundSpeed; } } }
Instance of Symbol 13 MovieClip "mainStars" in Frame 2
onClipEvent (load) { stars.duplicateMovieClip("stars2", 1000); stars2._x = stars._x + stars._width; starsStartx = this._x; starsSpeed = 4; } onClipEvent (enterFrame) { if (_root.spaceship.scrollStart) { this._x = this._x - starsSpeed; if (this._x <= (starsStartx - stars._width)) { this._x = starsStartx - starsSpeed; } } }
Instance of Symbol 19 MovieClip "spaceship" in Frame 2
onClipEvent (load) { moveSpeed = 10; _root.laser._visible = false; laserCounter = 1; scrollx = _root.mainGround.ground._width / 3; scrollStart = false; maxLasers = 4; depthCounter = 1; } onClipEvent (enterFrame) { if (Key.isDown(17) and (laserCounter <= maxLasers)) { laserCounter++; _root.laser.duplicateMovieClip("laser" + depthCounter, depthCounter); _root["laser" + depthCounter]._visible = true; depthCounter++; if (depthCounter > maxLasers) { depthCounter = 1; } } if (Key.isDown(39)) { if (this._x < scrollx) { this._x = this._x + moveSpeed; } else { scrollStart = true; } } else if (Key.isDown(37)) { this._x = this._x - moveSpeed; } if (Key.isDown(40)) { this._y = this._y + moveSpeed; } else if (Key.isDown(38)) { this._y = this._y - moveSpeed; } } onClipEvent (keyUp) { if (Key.getCode() == 39) { scrollStart = false; } }
Instance of Symbol 21 MovieClip "laser" in Frame 2
onClipEvent (load) { laserMoveSpeed = 20; this._x = _root.spaceship._x + 50; this._y = _root.spaceship._y; } onClipEvent (enterFrame) { if (this._name != "laser") { this._x = this._x + laserMoveSpeed; if (this._x > 450) { _root.spaceship.laserCounter--; this.removeMovieClip(); } i = 1; while (i <= _root.numEnemy) { if (this.hitTest(_root["enemy" + i])) { _root.score = _root.score + 100; _root["enemy" + i].gotoAndPlay(2); } i++; } } }
Instance of Symbol 24 MovieClip "enemy1" in Frame 2
onClipEvent (load) { function reset() { this._x = 450; this._y = random(100) + 50; enemySpeed = random(4) + 1; this.gotoAndStop(1); } reset(); } onClipEvent (enterFrame) { if (_root.spaceship.scrollStart) { this._x = this._x - (enemySpeed + _root.mainGround.groundSpeed); } else { this._x = this._x - enemySpeed; } if (this._x < -10) { reset(); } if (this.hitTest(_root.spaceship)) { _root.gotoAndStop("gameOver"); } }
Frame 3
stop();
Symbol 7 Button
on (release) { gotoAndPlay (2); }
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 29 Button
on (release) { gotoAndPlay (2); }

Library Items

Symbol 1 FontUsed by:2 25 26 28
Symbol 2 EditableTextUses:1Used by:Timeline
Symbol 3 FontUsed by:4 6
Symbol 4 EditableTextUses:3Used by:Timeline
Symbol 5 GraphicUsed by:7
Symbol 6 EditableTextUses:3Used by:7
Symbol 7 ButtonUses:5 6Used by:Timeline
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClipUses:8Used by:10
Symbol 10 MovieClipUses:9Used by:Timeline
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:13
Symbol 13 MovieClipUses:12Used by:Timeline
Symbol 14 GraphicUsed by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:14 15Used by:19
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClipUses:16 18Used by:Timeline
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 BitmapUsed by:23
Symbol 23 GraphicUses:22Used by:24
Symbol 24 MovieClipUses:23Used by:Timeline
Symbol 25 EditableTextUses:1Used by:Timeline
Symbol 26 EditableTextUses:1Used by:Timeline
Symbol 27 GraphicUsed by:29
Symbol 28 EditableTextUses:1Used by:29
Symbol 29 ButtonUses:27 28Used by:Timeline

Instance Names

"mainGround"Frame 2Symbol 10 MovieClip
"mainStars"Frame 2Symbol 13 MovieClip
"spaceship"Frame 2Symbol 19 MovieClip
"laser"Frame 2Symbol 21 MovieClip
"enemy1"Frame 2Symbol 24 MovieClip
"ground"Symbol 10 MovieClip Frame 1Symbol 9 MovieClip
"stars"Symbol 13 MovieClip Frame 1Symbol 12 MovieClip

Labels

"gameover"Frame 4

Dynamic Text Variables

scoreSymbol 25 EditableText""




http://swfchan.com/13/60529/info.shtml
Created: 5/3 -2019 20:51:14 Last modified: 5/3 -2019 20:51:14 Server time: 17/05 -2024 04:21:59