Forum Topic: Major glitch in my game.

(147 views • 11 replies)

This topic is 1 page long.

<< < > >>
None

uzi47

Reply To Post Reply & Quote

Posted at: 6/25/08 11:35 PM

uzi47 FAB LEVEL 17

Sign-Up: 05/26/07

Posts: 1,778

Okay. This is my first game I am actually putting all my effort into. Please do not make fun of it. When you click the back button is goes to the main menu, which replays the song. This is kinda weird. Should I post the .fla so you all can check it out, and understand it more?

http://spamtheweb.com/ul/upload/250608/7 9519_Catch_That_Monkey_TylerC.php

BBS Signature

None

uzi47

Reply To Post Reply & Quote

Posted at: 6/25/08 11:37 PM

uzi47 FAB LEVEL 17

Sign-Up: 05/26/07

Posts: 1,778


None

DarkHabit

Reply To Post Reply & Quote

Posted at: 6/25/08 11:37 PM

DarkHabit LIGHT LEVEL 11

Sign-Up: 10/29/06

Posts: 443

make a frame before the menu, and on that fram put a action

stopAllSounds();

Make the back button take you to this frame first

Boom

BBS Signature

None

dadancinman

Reply To Post Reply & Quote

Posted at: 6/25/08 11:39 PM

dadancinman EVIL LEVEL 05

Sign-Up: 02/05/08

Posts: 414

its cause on the menu frame is where u tell it to play the sound, so when u go back to the menu, it tells it to play the sound again. its no glitch. make two menu frames, one with the action, one without, and all the other screens (tut, instructions, play) make it go back to the second one. and then the intro go to the 1st.

Click on my sig! The Boom! Headshot Collab!
Join now!

BBS Signature

None

Woadraiders

Reply To Post Reply & Quote

Posted at: 6/25/08 11:40 PM

Woadraiders DARK LEVEL 11

Sign-Up: 11/11/07

Posts: 561

Stop the music before starting it again. Or check to see if it's been defined yet.

if(_root.bgmusic == undefined)
{
_root.bgmusic = new Sound(_root);
_root.bgmusic.attachSound("bgmusic");
_root.bgmusic.start(0,0);
_root.bgmusic.onSoundComplete = function()
{
this.start(0,0);
}
}

Mibbygames.com
panterA

BBS Signature

None

dadancinman

Reply To Post Reply & Quote

Posted at: 6/25/08 11:41 PM

dadancinman EVIL LEVEL 05

Sign-Up: 02/05/08

Posts: 414

At 6/25/08 11:37 PM, DarkHabit wrote: make a frame before the menu, and on that fram put a action

stopAllSounds();

Make the back button take you to this frame first

wow yeah that works to lol, completely forgot, i havnt scripted in awhile, been stuck on animation.

Click on my sig! The Boom! Headshot Collab!
Join now!

BBS Signature

None

uzi47

Reply To Post Reply & Quote

Posted at: 6/25/08 11:44 PM

uzi47 FAB LEVEL 17

Sign-Up: 05/26/07

Posts: 1,778

At 6/25/08 11:37 PM, DarkHabit wrote: make a frame before the menu, and on that fram put a action

stopAllSounds();

Make the back button take you to this frame first

I do not really get what your saying. I tried that it inserts it, but it doesn't change. Do I copy All the frames, and put them in a different .fla then after the first frame with stopAllSounds(); ?

BBS Signature

None

uzi47

Reply To Post Reply & Quote

Posted at: 6/25/08 11:49 PM

uzi47 FAB LEVEL 17

Sign-Up: 05/26/07

Posts: 1,778

bump

BBS Signature

None

Woadraiders

Reply To Post Reply & Quote

Posted at: 6/25/08 11:51 PM

Woadraiders DARK LEVEL 11

Sign-Up: 11/11/07

Posts: 561

Wow... Did you script the sound to play?

Mibbygames.com
panterA

BBS Signature

Goofy

zrb

Reply To Post Reply & Quote

Posted at: 6/25/08 11:51 PM

zrb LIGHT LEVEL 11

Sign-Up: 08/08/06

Posts: 4,554

bump

Just make a new layer for the sound and extend it to the length of all your main menu frames.

School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

uzi47

Reply To Post Reply & Quote

Posted at: 6/26/08 12:24 AM

uzi47 FAB LEVEL 17

Sign-Up: 05/26/07

Posts: 1,778

Never mind guys I fixed it :3

Thanks anyways your all great!

One thing. If I go to a certain frame, and I want the menu song to stop, and it goes to a different song what do i do?

BBS Signature

None

uzi47

Reply To Post Reply & Quote

Posted at: 6/26/08 02:16 AM

uzi47 FAB LEVEL 17

Sign-Up: 05/26/07

Posts: 1,778

bump

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 06:45 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!