I don't feel good creating a topic for those noob questions, but lets go.
I'm creating a game in which each level is on a separate layer.
Level 1 - Layer 1.
Level 2 - Layer 2 .. and so on.
All layers are invisible, except the one the player is playing.
If I have like 100 levels, and level 88 is full of objects movind and shooting and jumping etc... Does it affect the performance when the player isn't on this level ?
1-Do I get better performance, If after each level, I completely delete everything on the past layer (level) ? Or just setting invisible does the thing ?
2-If my level 88 is full of objects but I just start playing their actions when its actually level 88, is it better than let they playing since level 1 startup?
3-Should I create all the instances while on editor, or is it better to do - "Spawn object over point(x,y)" when each level starts ? And for that way I need to save the position for each object I want to create...
I'm just afraid of lagging my game, by using many layers. The Final question would be: Does invisible layers waste processing or only when it's visible(drawing) ?
Thats it, thx.
<img src="smileys/smiley1.gif" border="0" align="middle" />