char stringRead[255];
inFile.getline(stringRead, 255);
strcpy(attackString,stringRead);
inFile.getline(stringRead, 255);
strcpy(musicString,stringRead);
When I try this I get the same thing as before.
The first time I run the program it will display the music tring when I toggle the music on...
Hey guys quick question. I'm trying to read information from a file. This is the error I'm getting and below the code I'm using.
I'm trying to read any file name. The first file is for the song, the second file is for the sound effects. So the names have to be anything that the user wishes...
What I'm trying to do is to create a class that will ultimatly be used to have file from which the game will get all the eidtalbe variables, such as much, sounds effects and game parameters.
Now I haven't used ifstream in a very long time, I've tryed a few ways and can't seem to get it to work...
Hey guys, I have a quick question, I'm working with SDL and SDL mixer to get music working in our game. Right now I'm trying to create a way for the users to customize the sounds in the game through a text file.
When using ifstream I'm getting this error, I hgave no idea what started to cause...
Hey guys, we're looking at one of the final problem flash is causing us.
In the following code you can see what we do load our flash game. WE have 2 seperate levels which we call. Now once we're in level 1 what can be done to tell level 1 to end so that level 2 can start from the main file...
I have a question regarding how a preloader works.
I have a preloader and if I put alot of content in this file I then am able to use the preloader.
Now the way we have our game structured. We have each level in their own swf file which we use loadmovie to initialized each level.
The problem...
I have an odd problem.
We're making a game. When we started the music would loop no problem. So we're almost done with the game and I decide to make better music for the game. It loops perfectly when you play it on any player but in the game it doesn't loop anymore like it did before, there's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.