Hyas.In my main.as i have the super life this: super(width,height,60,true)
.When i enter my 1st world i want to use 30 frames(for a swf) so i do this:
FP.fixed = false;
swf.stage.frameRate = 30;
And after the swf ends i have this if:
if (timerSwf == 0) {
swf.stage.frameRate = 60;
swf.parent.removeChild(swf);
timerSwf--;
FP.fixed = true;
}
The problem is that FP.fixed
seems not to work anymore.I mean it doesn’t fix the framerate to 60 fps anymore.(i.e if i use FP.stage.framerate=30;
after changing fixed to false and then true,the framerate will be 30fps.But if i dont use FP.fixed=false; ... FP.fixed=true;
, and after i use FP.stage.framerate=30;
it doesn’t change it to 30fps.)
I would like for the fixed framerate to work again after i change it and then turn it to true again,but idk how. Do you guys know why this is happening/how can i fix this? ty.