In my game, I have a function of the difficult expressed using a int.
int A = 5;
int B = 12;
int currentDifficult = A · cos(wt) + B · t;
So, the difficult at start is: A
But increased with the time. t = this->getElapsed();
I don’t know how much is during the actions, because it could take forever (The time the player is alive).
Actually, I solve the problem calling manually update this function, but I would like implemented like an Action associated to the level without use scheluders.