Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsI'm making a game and trying to be super careful about any lag issues. So i was wondering, will too many frame labels cause lag?
so instead of gotoAndPlay("comboAAA");
i'd just use gotoAndPlay(4);
The game has 16 combos and overall 46 different attacks i want to put labels on, but not if it will cause lag. Anyone experiment with this before?
I'm using as2
Use labels.
Any speed difference would be negligible, and the labels improve the readability of your code dramatically, as well as making it easier to edit the movie clip without having to change every single gotoAndPlay function (imagine adding an extra frame somewhere and then having to find every gotoAndPlay/gotoAndStop in your code and adding one to every frame number - frame labels make your life easier in this respect).
If your game is lagging, there are much larger fish to fry before you even bother worrying about whether this would cause a difference. Flash changes most frame labels into numbers when you make the .swf file anyway, so there is often no difference.
Doomsday-One, working on stuff better than preloaders. Marginally.
At 5/2/10 06:24 AM, Doomsday-One wrote: Flash changes most frame labels into numbers when you make the .swf file anyway, so there is often no difference.
Oh good =D Thanks for the reply
I never use labels, and lag is usually caused by the flash built-in player.
At 5/2/10 11:41 AM, robin1232 wrote: lag is usually caused by the flash built-in player.
And noobs who don't know how to optimize their codes.
At 5/2/10 11:41 AM, robin1232 wrote: I never use labels, and lag is usually caused by the flash built-in player.
Sorry for being off topic, but that may be why my animations always lag, because it happens only when I watch it on the Flash player, not on like Spamtheweb or here.
Bang!
Thats why you test on various platforms before inflicting it on the public.
Frame labels are an absolute godsend.