Why is it best to load attributes in a different scene?
I've read that it's best to put load attributes in a separate scene, but I've never read why this is.
Currently my game is all in one scene, and I'm quite keen to keep it that way if possible - obviously if loading attributes in the same scene is a terrible idea then I shan't, just looking for a bit of advice as to why.
Currently my game is all in one scene, and I'm quite keen to keep it that way if possible - obviously if loading attributes in the same scene is a terrible idea then I shan't, just looking for a bit of advice as to why.
Best Answer
-
gyroscope I am here.Posts: 6,598
@imjustmike
Hi again Mike; I don't think it'd be terrible at all to put Load attributes in a same scene as other stuff, in fact it's usual to do that.
In particular (and more than likely) they' d be loaded in the Menu scene, or whatever your scene is that has a Play/Go/Start button as well as a Continue Game button. And that's where they are best put, there in your Continue button.
The Continue Button is pressed, the saved attributes are loaded, the last one being the last saved level to go to, then a Change Scene attribute to that level.""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
My menu, along with the entire game (very simple) is in the one scene, using interpolates to move things around. That means I don't have a menu screen - if I have put the load attributes in a play button which the user will likely (or at least fingers crossed!) will click multiple times, will that cause any issues? Or can they be loaded multiple times in a session?