STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #23776 |
RIVER KAYAK |
PLAY |
Actions |
GAME OVER You hit too many rocks |
YOU MADE IT! |
0 |
ActionScript [AS1/AS2]
Frame 1stop();Frame 2function initGame() { firstRock = 1; lastRock = 0; spills = 0; timeSinceLastRock = 0; riverSpeed = 0; startTime = getTimer(); riverPos = 0; attachMovie("kayaking fox", "fox", 999999); fox._x = 275; fox._y = 200; } function moveFox() { if (4 < fox._currentFrame) { dx = 0; } else if (Key.isDown(Key.RIGHT)) { if (10 < riverSpeed) { riverSpeed = riverSpeed - 1; } dx = riverSpeed; fox.gotoAndStop("left"); } else if (Key.isDown(Key.LEFT)) { if (10 < riverSpeed) { riverSpeed = riverSpeed - 1; } dx = -riverSpeed; fox.gotoAndStop("right"); } else { dx = 0; fox.gotoAndStop("still"); } fox._x = fox._x + dx; if (fox._x < 150) { fox._x = 150; } if (400 < fox._x) { fox._x = 400; } if (riverSpeed < 25) { riverSpeed = riverSpeed + 0.5; } riverPos = riverPos + riverSpeed; showGameTime(); if (riverPos >= 30000) { removeAll(); gotoAndPlay (4); } } function newRock() { if (5 < timeSinceLastRock) { if (Math.random() < 0.25) { lastRock++; attachMovie("rocks", "rock" + lastRock, lastRock); _root["rock" + lastRock]._x = (Math.random() * 250) + 150; _root["rock" + lastRock]._y = 450; f = int(Math.Random() * _root["rock" + lastRock]._totalFrames) + 1; _root["rock" + lastRock].gotoAndStop(f); timeSinceLastRock = 0; _root["rock" + i].hit = false; } } timeSinceLastRock++; } function moveRocks() { side1._y = side1._y - riverSpeed; if (side1._y < -400) { side1._y = side1._y + 400; } side2._y = side2._y - riverSpeed; if (side2._y < -200) { side2._y = side2._y + 400; } i = firstRock; while (lastRock >= i) { x = _root["rock" + i]._x; y = _root["rock" + i]._y - riverSpeed; if (y < -50) { removeRock(i); } else if (((_root["rock" + i].hit == false) and (Math.abs(y - fox._y) < 60)) and (Math.abs(x - fox._x) < 25)) { spills = spills + 1; _root["rock" + i].hit = true; fox.gotoAndPlay("spill"); riverSpeed = 0; if (5 < spills) { removeAll(); gotoAndPlay (3); } } _root["rock" + i]._y = y; i++; } } function removeRock(n) { _root["rock" + n].removeMovieClip(); firstRock = n + 1; } function removeAll() { i = firstRock; while (lastRock >= i) { _root["rock" + i].removeMovieClip(); i++; } fox.removeMovieClip(); } function showGameTime() { gametime = int((getTimer() - startTime) / 1000); if (gametime != lasttime) { lasttime = gametime; mins = int(gametime / 60); secs = gametime - (mins * 60); showtime = (mins + ":") + String(100 + secs).substr(1, 2); } } stop();Instance of Symbol 57 MovieClip in Frame 2onClipEvent (load) { _root.initGame(); } onClipEvent (enterFrame) { _root.moveFox(); _root.newRock(); _root.moveRocks(); }Frame 3stop();Frame 4stop();Symbol 11 MovieClip Frame 5gotoAndPlay (1);Symbol 37 MovieClip [kayaking fox] Frame 1stop();Symbol 37 MovieClip [kayaking fox] Frame 22gotoAndPlay (1);Symbol 49 Buttonon (press) { gotoAndPlay (1); }Symbol 53 MovieClip Frame 1stop();
Library Items
Symbol 1 Graphic | Used by:37 | |
Symbol 2 Graphic | Used by:6 | |
Symbol 3 Graphic | Used by:6 | |
Symbol 4 Graphic | Used by:6 | |
Symbol 5 Graphic | Used by:6 | |
Symbol 6 MovieClip | Uses:2 3 4 5 | Used by:37 |
Symbol 7 Graphic | Used by:11 | |
Symbol 8 Graphic | Used by:11 | |
Symbol 9 Graphic | Used by:11 | |
Symbol 10 Graphic | Used by:11 | |
Symbol 11 MovieClip | Uses:7 8 9 10 | Used by:37 |
Symbol 12 Graphic | Used by:37 | |
Symbol 13 Graphic | Used by:37 | |
Symbol 14 Graphic | Used by:37 | |
Symbol 15 Graphic | Used by:37 | |
Symbol 16 Graphic | Used by:37 | |
Symbol 17 Graphic | Used by:37 | |
Symbol 18 Sound | Used by:37 | |
Symbol 19 Graphic | Used by:37 | |
Symbol 20 Graphic | Used by:37 | |
Symbol 21 Graphic | Used by:37 | |
Symbol 22 Graphic | Used by:37 | |
Symbol 23 Graphic | Used by:37 | |
Symbol 24 Graphic | Used by:37 | |
Symbol 25 Graphic | Used by:37 | |
Symbol 26 Graphic | Used by:37 | |
Symbol 27 Graphic | Used by:37 | |
Symbol 28 Graphic | Used by:37 | |
Symbol 29 Graphic | Used by:37 | |
Symbol 30 Graphic | Used by:37 | |
Symbol 31 Graphic | Used by:37 | |
Symbol 32 Graphic | Used by:37 | |
Symbol 33 Graphic | Used by:37 | |
Symbol 34 Graphic | Used by:37 | |
Symbol 35 Graphic | Used by:37 | |
Symbol 36 Graphic | Used by:37 | |
Symbol 37 MovieClip [kayaking fox] | Uses:1 6 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | |
Symbol 38 Graphic | Used by:42 | |
Symbol 39 Graphic | Used by:42 | |
Symbol 40 Graphic | Used by:42 | |
Symbol 41 Graphic | Used by:42 | |
Symbol 42 MovieClip [rocks] | Uses:38 39 40 41 | |
Symbol 43 Graphic | Used by:Timeline | |
Symbol 44 Font | Used by:45 | |
Symbol 45 Text | Uses:44 | Used by:Timeline |
Symbol 46 Graphic | Used by:49 | |
Symbol 47 Font | Used by:48 54 59 60 61 | |
Symbol 48 Text | Uses:47 | Used by:49 |
Symbol 49 Button | Uses:46 48 | Used by:Timeline |
Symbol 50 Sound | Used by:Timeline | |
Symbol 51 Graphic | Used by:Timeline | |
Symbol 52 Graphic | Used by:53 | |
Symbol 53 MovieClip | Uses:52 | Used by:Timeline |
Symbol 54 EditableText | Uses:47 | Used by:Timeline |
Symbol 55 Font | Used by:56 | |
Symbol 56 Text | Uses:55 | Used by:57 |
Symbol 57 MovieClip | Uses:56 | Used by:Timeline |
Symbol 58 Sound | Used by:Timeline | |
Symbol 59 Text | Uses:47 | Used by:Timeline |
Symbol 60 Text | Uses:47 | Used by:Timeline |
Symbol 61 EditableText | Uses:47 | Used by:Timeline |
Instance Names
"side2" | Frame 2 | Symbol 53 MovieClip |
"side1" | Frame 2 | Symbol 53 MovieClip |
"bubbles" | Symbol 37 MovieClip [kayaking fox] Frame 1 | Symbol 6 MovieClip |
"ripples" | Symbol 37 MovieClip [kayaking fox] Frame 1 | Symbol 11 MovieClip |
"bubbles" | Symbol 37 MovieClip [kayaking fox] Frame 18 | Symbol 6 MovieClip |
"ripples" | Symbol 37 MovieClip [kayaking fox] Frame 18 | Symbol 11 MovieClip |
Special Tags
ExportAssets (56) | Timeline Frame 1 | Symbol 37 as "kayaking fox" |
ExportAssets (56) | Timeline Frame 1 | Symbol 42 as "rocks" |
Labels
"start" | Frame 1 |
"lose" | Frame 3 |
"win" | Frame 4 |
"still" | Symbol 37 MovieClip [kayaking fox] Frame 1 |
"right" | Symbol 37 MovieClip [kayaking fox] Frame 2 |
"left" | Symbol 37 MovieClip [kayaking fox] Frame 3 |
"spill" | Symbol 37 MovieClip [kayaking fox] Frame 4 |
"back up" | Symbol 37 MovieClip [kayaking fox] Frame 18 |
Dynamic Text Variables
showtime | Symbol 54 EditableText | " " |
showtime | Symbol 61 EditableText | "0" |
|