x


What's better? Multiple scenes or assigning layers?

I have a main menu that will then go to an instruction screen, and then to the actual game. Performance wise, is it better to make the menu, instruction, and gameplay sections each different scenes, or to hide and display items using collision detection and assigning layers? (for iOS)

more ▼

asked Apr 28 '12 at 10:13 PM

valichm gravatar image

valichm
136 19 22 27

Very interesting question that I shall follow !

Apr 28 '12 at 10:14 PM Berenger
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Can people go back to the Instruction scene while they are playing (then resume play)? Jumping back into a scene "in progress" is a giant pain -- easier to put a second "Instruction" camera at 999,999 in your "playing" scene, if that's the case.

more ▼

answered Apr 29 '12 at 08:22 AM

Owen Reynolds gravatar image

Owen Reynolds
11.2k 1 7 45

(comments are locked)
10|3000 characters needed characters left

I think you should use scenes.

1.: Working with scenes is easier not only to set it up in the first place but also if you had to change something during the development it will be easier to do that with scenes.

2.: I think that calculating the layers, collision and stuff will be kinda cpu intensive for an iOS game.

This is just my opinion it probably isn't right in some points but that's how i would go about doing it.

If you want to have transitions just like in Half Life 2 for example it maybe would be easier to use layers and stuff instead of scenes.

Hope I kinda help you but I'm also looking forwarward to other opinions on the matter.

more ▼

answered Apr 28 '12 at 10:41 PM

ExTheSea gravatar image

ExTheSea
1.9k 12 22 30

By "like Half Life 2" I assume you mean seamless transitions? Then you'd use something like Application.LoadLevelAdditive() along with some interest management, but this means you'd have to destroy parts of the level you no longer use yourself through scripts.

Apr 29 '12 at 09:10 AM Bluntweapon

Yes but i just thought you maybe can do this with layers too like he described it in his question but i don't really know how.

Maybe this just works with load level additive.

Apr 30 '12 at 12:36 PM ExTheSea
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2482
x715
x150

asked: Apr 28 '12 at 10:13 PM

Seen: 917 times

Last Updated: Apr 30 '12 at 12:36 PM