by DST » Sat Apr 10, 2010 12:42 am
Looking at your file now, i can see some things that would help (i don't know if any of these are causing your lag, but every little bit helps):
1. Don't replace and destroy the text actors - make your fonts white, and then simply change the rgb values of the actor.
2. I wouldn't use separate canvas's unless you have a reason to - you can put all the script in one draw actor of one canvas. Canvas is a slow actor and having multiples isn't generally good.
3. Only use timers when exact times are needed - otherwise, create your own frame timers using a variable, and changing states when that variable reaches a certain value, using a case switch. Timers are a direct reference to the system clock, and lots of them can be bad in certain cases. And they're very difficult to manage once your game gets complex, thus variables are better for timers. (and time timers don't take framerate into account, but variable timers do).