More scenes & less actors or one scene & more actors?
Cap
Member Posts: 225
Hello,
at the moment I'm planning a game with about 12 levels (landscape, no scrolling). The background image would always be different, and every level would have 80% the same actors, but 20% unique actors.
Now... should I have a different scene for every level? Or is it better to have only one scene and change the background image all the time, while hiding/showing the not used/used actors?
I guess the number of all actors would be around 50.
Thx.
at the moment I'm planning a game with about 12 levels (landscape, no scrolling). The background image would always be different, and every level would have 80% the same actors, but 20% unique actors.
Now... should I have a different scene for every level? Or is it better to have only one scene and change the background image all the time, while hiding/showing the not used/used actors?
I guess the number of all actors would be around 50.
Thx.
Comments
what u would want to do if u can is put your main menu and setttings and how to section and all that in one scene so theres no scene load when you go from instructions back to main menu or something
and for programming separate scenes are easier to manage
but if the actors are static.. i.e. they may be placed on different coordinates in each level but they are not moving in level unless by user input... then one scene is less system intense...
my Art in the Louvre is all one scene... from Logo to Credits...
you can use a gameAttribute levelIndex to track what player is Level on and the actors position for that level
EX: Rule when levelIndex = # ... changeAttribute self.Position.X To: whatever
Try it both ways with about 5 levels (5 bg Images) and 20 square Actors (different colors) and check in Viewer the fps for each method.
MH
At the moment I think using one scene may be better, but I don't know what happens if GS needs to load 12 different background images and stuff like that at one go.
you could put the image for the title in it... or use a transparent image.
as you want/need you changeImage of that actor... the pix are already in memory as part of your application's images.
MH