I'm working on a new feautre.
The idea is: When you pass a circuit, the velocity of the game will become slower and slower and then the game will return to the menu for select a new ciruit.
Is a good idea?
Anyway i'm having problems to slowdown the game. Currently i'm trying with this code.
(this code goes at the end of change_game_state function)
Code:
if(type==GAME_FINISHING)
{
raydium_ode_time_change(100-slowdown);
slowdown++;
if(slowdown==100)
{
change_game_state(GAME_END);
slowdown=0;
leave();
}
raydium_log("slowdown: %d",slowdown);
}
Of course there are more lines of code here and there, but that's the important thing, i suppose
It "works" but the slowdown is quite irregular, with variations in the velocity of the game... ideas?