Hey Guys and Gals!
First of all I'm new, I did about an hour of searching to figure out this problem to no avail so if it has been solved previously I apologize. I'm currently doing a final project (Which is a music game) and I'm having some issues with my while look which holds LoopGDK.
What I'm trying to do is capture the time of the computer via dbTimer and add the amount of time of the song selected in one function (yes, there are only two songs

):
void finishCondition(int songSelection, int &startingAmount)
{
if (songSelection == AKE_BONO)
{
startingAmount = dbTimer() + 331000;
}
else
{
startingAmount = dbTimer() + 211000;
}
}
then send that value back up process my while loop until startingAmount = dbTimer():
// Use the song choice to determine the number of objects
finishCondition(songSelection, startingAmount);
// Start the Music
startGameMusic(songSelection);
// Execute the game loop.
while ( LoopGDK() && (startingAmount > dbTimer()))
{
...
}
Currently the loop just keeps iterating because the condition seems to be false... and I'm just an overworked college student missing some extremely obvious at this point or is there no way to do what I wanna do?
Thanks in advance to anyone who responds.