# Another tunnel rush game

**URL:** <https://forum.kirupa.com/t/another-tunnel-rush-game/184059>\
**Category:** programming\
**Created:** [April 1, 2006, 2:14pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059 "2006-04-01T14:14:00Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![Scarybug](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/scarybug/32/2863_2.png) [@Scarybug](https://forum.kirupa.com/u/Scarybug)\
**Post date:** [April 4, 2006, 4:09pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/21 "2006-04-04T16:09:46Z")

</div>

I totally dig on this game.

---

<div class="post-metadata">

**Author:** ![Ophyr](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Ophyr](https://forum.kirupa.com/u/Ophyr)\
**Post date:** [April 4, 2006, 5:37pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/22 "2006-04-04T17:37:57Z")

</div>

> [@joppe](#):
>
> Wow, took me a couple o’ ones to understand that the grey ones where the colour you already had 😛  
> Im fifth on the highscore 😃

Haha yeah 😛 That’s more or less a graphical bug that I’ll have to fix ^^;;

---

<div class="post-metadata">

**Author:** ![Ravmaster](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@Ravmaster](https://forum.kirupa.com/u/Ravmaster)\
**Post date:** [April 4, 2006, 6:05pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/23 "2006-04-04T18:05:18Z")

</div>

[CENTER]  
[/CENTER]

> [@Ophyr](#):
>
> The orbs are going to look more like glass orbs instead of just gradient ones, so they’ll look more green and red. The scoreboard script works but I didn’t upload the working version just yet… Seems like my domain is down :x
> 
> @Ravmaster -\> The source will be released when it’s done 🍺

YAY someone else who didnt call me RAVEmaster 😃

o this will own 😃

---

<div class="post-metadata">

**Author:** ![Nich](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@Nich](https://forum.kirupa.com/u/Nich)\
**Post date:** [April 4, 2006, 8:04pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/24 "2006-04-04T20:04:38Z")

</div>

Shockingly addictive \>\_\>. I find myself coming back to make sure I still have a high score. I’ve said it before, but great game!

---

<div class="post-metadata">

**Author:** ![joran420](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joran420/32/2329_2.png) [@joran420](https://forum.kirupa.com/u/joran420)\
**Post date:** [April 5, 2006, 6:30am UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/25 "2006-04-05T06:30:46Z")

</div>

wow great game man

---

<div class="post-metadata">

**Author:** ![DesignerDude05](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@DesignerDude05](https://forum.kirupa.com/u/DesignerDude05)\
**Post date:** [April 5, 2006, 1:29pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/26 "2006-04-05T13:29:06Z")

</div>

fantastic game pretty addictive especially in work 🙂

---

<div class="post-metadata">

**Author:** ![Scarybug](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/scarybug/32/2863_2.png) [@Scarybug](https://forum.kirupa.com/u/Scarybug)\
**Post date:** [April 6, 2006, 3:21pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/27 "2006-04-06T15:21:36Z")

</div>

I think it would be even better with some music and sound. A sound for getting an orb, and a sound for hitting a wall, and a whooosh sound for the end.

The music could get faster and more intense as you speed up. This would be a cool extra indicator of how fast you’re going.

I wish I had this game on my cellphone instead of the crappy memory game 🙂

---

<div class="post-metadata">

**Author:** ![Ophyr](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Ophyr](https://forum.kirupa.com/u/Ophyr)\
**Post date:** [April 8, 2006, 1:54pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/28 "2006-04-08T13:54:33Z")

</div>

I’ve been messing with the music thing, I even made something similiar to a tracker for Flash, but the filesize will increase dramatically so I think I’ll make dynamic music a no-go 😉

There is some music and SFX in the game right now, but as I still need to do a preloader, I haven’t uploaded it yet 🙂 I’ll be releasing it soon though!

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 8, 2006, 10:48pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/29 "2006-04-08T22:48:03Z")

</div>

Ophyr how did you make dynamic music :think:  
I cannot really think of an way to do that without making unsmooth transitions, or well tune on sound out and one in maybe. But i would like to see dynamic music anyway. Mind posting an fla/swf ?

---

<div class="post-metadata">

**Author:** ![Ophyr](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Ophyr](https://forum.kirupa.com/u/Ophyr)\
**Post date:** [April 9, 2006, 9:28am UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/30 "2006-04-09T09:28:26Z")

</div>

Basically, it’s several samples of an equal length running concurrently. Each time a game state changes, you can turn one channel on/off 🙂 I’ll see if I can find the fla so I can post it here 🙂

[edit]  
I’m unable to upload the .fla as it’s too big (3 .wav files)

Here’s all the code though :

The buttons to start/stop the samples, be sure to rename it to the correct loop and Object for each button

```auto
on(press){
    if(!_root.vol1 ? _root.vol1 = 100 : _root.vol1 = 0);
    
    _root.loop1.setVolume(_root.vol1);
}

```

The attaching code that goes in the 1st frame

```auto
_root.vol1 = 0;
_root.vol2 = 0;
_root.vol3 = 0;

//Loop 1
loop1 = new Sound(_root.createEmptyMovieClip('bgm1', 1));

loop1.attachSound("loop1");
loop1.start(0, 5000);
_root.loop1.setVolume(_root.vol1);

//Loop 2
loop2 = new Sound(_root.createEmptyMovieClip('bgm2', 2));

loop2.attachSound("loop2");
loop2.start(0, 5000);
_root.loop2.setVolume(_root.vol2);

//Loop 3
loop3 = new Sound(_root.createEmptyMovieClip('bgm3', 3));

loop3.attachSound("loop3");
loop3.start(0, 5000);
_root.loop3.setVolume(_root.vol3);

```

Al you need to have is 3 samples that are of an equal length and have the same beat per minute. Import them, link them as loop1, loop2, loop3 and you’re done 🙂

---

<div class="post-metadata">

**Author:** ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)\
**Post date:** [April 9, 2006, 9:43am UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/31 "2006-04-09T09:43:42Z")

</div>

Soo every sound clip is running but the sound clips for the higher speeds are turned off and when you gain speed it turns on the sound for the speed you just got too?

---

<div class="post-metadata">

**Author:** ![Ophyr](https://avatars.discourse-cdn.com/v4/letter/o/41988e/32.png) [@Ophyr](https://forum.kirupa.com/u/Ophyr)\
**Post date:** [April 9, 2006, 10:20am UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/32 "2006-04-09T10:20:42Z")

</div>

Exactly 🙂

With a freeware tracker program such as SkaleTracker ([http://www.skale.org](http://www.skale.org)) you’ll be able to create your own loops that are a bit longer than 2 seconds 😉

Basically you’ll have a bassline, drums, hats, something like a transition loop, and a full blown ‘everything’ loop.

[edit] It’s updated… I’m struggling with one last thing, but when that’s done I’ll release it 😛

---

<div class="post-metadata">

**Author:** ![Scarybug](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/scarybug/32/2863_2.png) [@Scarybug](https://forum.kirupa.com/u/Scarybug)\
**Post date:** [April 11, 2006, 3:13pm UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/33 "2006-04-11T15:13:51Z")

</div>

You could always just play the mp3s from external files. If you’re worried about transitions sounding strange, you could play a “transition sound” between switching 2 music files.

---

<div class="post-metadata">

**Author:** ![bugmenot](https://avatars.discourse-cdn.com/v4/letter/b/7c8e57/32.png) [@bugmenot](https://forum.kirupa.com/u/bugmenot)\
**Post date:** [April 14, 2006, 8:35am UTC](https://forum.kirupa.com/t/another-tunnel-rush-game/184059/34 "2006-04-14T08:35:41Z")

</div>

wow this game is great 1st run, 13k 2nd run, 21k After that i kept getting 19k-ish. fastest speed i attained was like 460 then there was a sudden extreme narrowing of the tunnel and it messed me up. im too tired to keep playing.

[Previous page](https://forum.kirupa.com/t/another-tunnel-rush-game/184059.md?page=1)
