Scene or Actors to improve loading?
irong
Member Posts: 41
Hello Guys,
i nearly finish creating my first game with GS and it's great. But i am worried about the loading that exists between scene.... they are not that long but still they are there...
So i decided something stupid or not? to avoid those loading. I am going to do like 1 unique Scene for my main game! (still got scene for Home page and about page) But Game over, transition scene, main game ALL in the same SCENE ! So i will have no loading !
BUT after some reflexion i am not sure that it's the best way... i am going to spawn backgrounds, change them, spawn scores for game over, then destroy, they respawn when the game begins... etc etc so wow, Will i have really no loading times if there's no scene transition? Isn't the work necessary for that is too hudge? i imagine that i will have to create tons of rules and behavior...
What do you think of that guys?
When the game is ready for the apple store those loadings are still there?
thanks
i nearly finish creating my first game with GS and it's great. But i am worried about the loading that exists between scene.... they are not that long but still they are there...
So i decided something stupid or not? to avoid those loading. I am going to do like 1 unique Scene for my main game! (still got scene for Home page and about page) But Game over, transition scene, main game ALL in the same SCENE ! So i will have no loading !
BUT after some reflexion i am not sure that it's the best way... i am going to spawn backgrounds, change them, spawn scores for game over, then destroy, they respawn when the game begins... etc etc so wow, Will i have really no loading times if there's no scene transition? Isn't the work necessary for that is too hudge? i imagine that i will have to create tons of rules and behavior...
What do you think of that guys?
When the game is ready for the apple store those loadings are still there?
thanks
Comments
Will use your services for sure if needed. Thanks Again.
learn to reuse actors
EX: my logo actor becomes my title actor... with just a changeImage behavior...
I would not make a background spawn... I would only use spawn behavior if I really had to.
Create a screen size actor... call it bgDisplay
Create a gameAttribute Index type and name it sceneIndex
(leave it at 0 for your logo/splashScreen have an event trigger it to 1 for title... to 2 for instructions...3 for levels .... and on each of your level selects have it before the changeScene ... changeAttribute game.sceneIndex to correct # )
drag your bgDisplay (mine uses a transparent 2x2 image that is the prototype actor's image...(sized to screen W & H so there is no re-sizing needed) onto each scene make sure it is the layered in back of everything else...
then it is simply on the bgDisplay actor Editor rules when sceneIndex = # ... changeImage To: image for scene
===
my first game was 1 scene... logo/title/play/credits...always held to 60fps... but then it was all done with transparent actor and changeImages...
MH