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

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

Western Defense (Engine).swf

This is the info page for
Flash #69430

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


ActionScript [AS1/AS2]
Frame 1
lastShot = 0; bc = 1000; onMouseDown = function () { if ((getTimer() - lastShot) > 900) { lastShot = getTimer(); bc++; if (bc > 1100) { bc = 1000; } duplicateMovieClip ("bullet", "b" + bc, bc); with (_root["b" + bc]) { spd = 10; _x = player._x; _y = player._y; _rotation = _root.player._rotation; } } _root["b" + bc].onEnterFrame = function () { with (this) { if (_rotation > 180) { _y = _y + (spd * Math.cos((Math.PI/180) * _rotation)); _x = _x - (spd * Math.sin((Math.PI/180) * _rotation)); } else { _y = _y - (spd * Math.cos((Math.PI/180) * _rotation)); _x = _x + (spd * Math.sin((Math.PI/180) * _rotation)); } if ((((_x > Stage.width) || (_x < 0)) || (_y < 0)) || (_y > Stage.height)) { this.removeMovieClip(); } } }; }; onMouseMove = function () { with (player) { this.Xd = _root._xmouse - _x; this.Yd = _root._ymouse - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); } }; stop(); _root.score = 100; _root.score_display.text = 100;
Instance of Symbol 5 MovieClip "player" in Frame 1
onClipEvent (load) { speed = 9; stop(); } onClipEvent (enterFrame) { if (Key.isDown(39)) { _x = (_x + speed); xdir = 1; ydir = 0; gotoAndStop (3); } else if (Key.isDown(40)) { _y = (_y + speed); ydir = 1; xdir = 0; gotoAndStop (5); } else if (Key.isDown(37)) { _x = (_x - speed); xdir = -1; ydir = 0; gotoAndStop (1); } else if (Key.isDown(38)) { _y = (_y - speed); ydir = -1; xdir = 0; gotoAndStop (2); } else if (Key.isDown(17)) { _y = (_y - speed); ydir = -1; xdir = 0; gotoAndStop (2); } anyHit = ((hitTest(_root.wall1) | hitTest(_root.wall2)) | hitTest(_root.wall3)) | hitTest(_root.wall4); if (anyHit) { _x = (_x + ((-1 * speed) * xdir)); _y = (_y + ((-1 * speed) * ydir)); } } onClipEvent (mouseMove) { Xd = _root._xmouse - _x; Yd = _root._ymouse - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); updateAfterEvent(); }
Instance of Symbol 8 MovieClip in Frame 1
onClipEvent (load) { walkSpeed = 5; } onClipEvent (enterFrame) { if (Math.abs(_x - _root.player._x) <= 250) { if (random(2)) { if (_x < _root.player._x) { _x = (_x + walkSpeed); } if (_x > _root.player._x) { _x = (_x - walkSpeed); } if (_y < _root.player._y) { _y = (_y + walkSpeed); } if (_y > _root.player._y) { _y = (_y - walkSpeed); } } } } onClipEvent (enterFrame) { if (this.hitTest(_root.player)) { _root.score = _root.score - 1; _root.score_display.text = _root.score; } }
Instance of Symbol 10 MovieClip in Frame 1
onClipEvent (load) { walkSpeed = 5; } onClipEvent (enterFrame) { if (Math.abs(_x - _root.player._x) <= 250) { if (random(2)) { if (_x < _root.player._x) { _x = (_x + walkSpeed); } if (_x > _root.player._x) { _x = (_x - walkSpeed); } if (_y < _root.player._y) { _y = (_y + walkSpeed); } if (_y > _root.player._y) { _y = (_y - walkSpeed); } } } }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 GraphicUsed by:Timeline
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:Timeline
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:9Used by:Timeline
Symbol 11 GraphicUsed by:Timeline
Symbol 12 FontUsed by:13
Symbol 13 EditableTextUses:12Used by:Timeline

Instance Names

"bullet"Frame 1Symbol 3 MovieClip
"player"Frame 1Symbol 5 MovieClip
"score_display"Frame 1Symbol 13 EditableText

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.




http://swfchan.com/14/69430/info.shtml
Created: 10/4 -2019 11:10:42 Last modified: 10/4 -2019 11:10:42 Server time: 18/05 -2024 20:08:55