Page 1 of 1

Menu staying in background

PostPosted: Mon Feb 14, 2011 2:19 pm
by Nykos
Hi everyone,my game is almost finished but I have two little questions.
First, when a level is finished, and the next one is charging, i have no black screen but the game menu is shown, then it disappears and the level is loaded.
I'd like to know what can i do so that the menu is not shown.

Then, I have a sound that has echo in the game, but it shouldn't. All the other sounds work just fine, but this one has echo...and i don't know why.

Thanks in advance, Nykos

Re: Menu staying in background

PostPosted: Mon Feb 14, 2011 7:18 pm
by speckford123
I guess when your swapping levels you could put an actor that hides the menu?

And the echo sound is likely a loop in your code, it's hard to help without the source files to examine.

Re: Menu staying in background

PostPosted: Mon Feb 14, 2011 8:54 pm
by skydereign
For the sound part, it probably is a repetition of some sort like speckford123 says. For the other problem, you can disable the visibility state of the menu if you have it parented to the view. If you don't, then it shouldn't be on screen anyways. What I do is have parented backdrops each containing different parts of the menu, and when I need them move them to the center of the screen. That way I don't have to remember to change the visibility states to disable/enable.

Re: Menu staying in background

PostPosted: Tue Feb 15, 2011 8:42 am
by Nykos
thanks for the replies guys, for the sound issue, i will look at it.
For the menu, in fact it's not the ingame menu, it's the menu at the begining of the game, it's a different .ged. I will try to hide ot with a black actor when I load another ged. But i don't understand why it keeps being played in background.

Re: Menu staying in background

PostPosted: Tue Feb 15, 2011 8:54 am
by skydereign
You mean the menu is an entirely different ged file? If it is, that shouldn't happen (unless you duplicated the file and didn't delete the menu actor). Loading a ged will stop one game to play the other, so the menu should be destroyed before the other file is loaded.

Re: Menu staying in background

PostPosted: Tue Feb 15, 2011 9:36 am
by Nykos
:D yeah that's what i thought too, but apperently, it doesn't want to die, I think i created the zombie menu .ged file.
Yes it's a different ged file and i didn't duplicated it.
I even tried using exit game with unwanted concequences so i canceled this option...
The fact is, i'm sure that having the menu played in the back eats memory than it should, and most of all, it doesn't look very pro...
It does this when exported to windows, a litlle. But when exported to iphone, well it's during 1 to 2 seconds.

(ps: sorry for the bad english, i'm from paris... :D )

Re: Menu staying in background

PostPosted: Tue Feb 15, 2011 9:42 am
by skydereign
You mind posting the geds? Or perhaps if the forums are too public send me a link, or send it to me through email? I've never seen LoadGame work like that, and have never heard of that happening. The only bug I've heard about concerning LoadGame was when loading tiles.

Re: Menu staying in background

PostPosted: Tue Feb 15, 2011 9:51 am
by Nykos
Sure, PM me your mail.