Page 1 of 1

Menu causing crashes??

PostPosted: Wed Apr 29, 2009 10:34 pm
by jimmynewguy
I had my game running very smooth, untill i made a menu.....
now it crashes almost all the time, but the menu barely has any coding, so i have no idea what going on
Code: Select all
if(cloneindex == 0)
{
yvelocity  += .9;
}

and
Code: Select all
if(select == 0)
{
select = 1;
PlaySound2("data/hit03.wav", 1.000000, 1, 0.000000);
PlayMusic2("data/song.mid", 1.000000, 8, HIGH_PRIORITY_MUSIC);
}

are basically the only codes, other than x = 0;
and y = 0; and some enable events....
i don't see any problems, so i don't know how i should go about fixing this

even GE seems to be messing up, random letters in windows will start scrolling through symbals
im scared, alone, and cold...........help.......

Re: Menu causing crashes??

PostPosted: Wed Apr 29, 2009 10:57 pm
by j2graves
I think I know what it is. the playsound event you have plays a .wav sound, and .wav is a BIG music file.

Re: Menu causing crashes??

PostPosted: Thu Apr 30, 2009 12:12 am
by jimmynewguy
it can't be wav is too big, since the .wav file is 24kb

i deleted the menu and it works fine...so it's not something else :cry:

Re: Menu causing crashes??

PostPosted: Thu Apr 30, 2009 12:14 am
by j2graves
you may just have to code the menu differently.

Re: Menu causing crashes??

PostPosted: Tue May 05, 2009 12:43 am
by factorman
Probably a bad menu.

Re: Menu causing crashes??

PostPosted: Tue May 05, 2009 1:41 am
by jimmynewguy
it was actually bieng caused by play music on a collision.......don't know why though but it doesn't work so i just mayed a delay in the music instead :lol:

Re: Menu causing crashes??

PostPosted: Fri May 08, 2009 4:43 pm
by j2graves
well it's great that you got it working :)