Best Practice for loading between game levels
Posted: Tue Aug 20, 2013 4:22 pm
Hi,
sorry if this has been addressed already in the tutorial videos, I am still working my way through watching all of them.
I was wondering what the best practice was for changing "levels" in a game. Specifically I am creating a 2D platformer with multiple "rooms" which I am currently thinking will be loaded as separate RUBE scenes.
Certain parts of the game would need to be loaded in each room/level, such as the main player character. When moving from one room to the next, is the basic strategy to just destroy the existing room's world and all its bodies, load in the new world and also recreate the player character/body in the new world? Or are there better ways to preserve the bodies and elements that should be carried over from room to room (and world to world)?
Thanks for the help and advice
sorry if this has been addressed already in the tutorial videos, I am still working my way through watching all of them.
I was wondering what the best practice was for changing "levels" in a game. Specifically I am creating a 2D platformer with multiple "rooms" which I am currently thinking will be loaded as separate RUBE scenes.
Certain parts of the game would need to be loaded in each room/level, such as the main player character. When moving from one room to the next, is the basic strategy to just destroy the existing room's world and all its bodies, load in the new world and also recreate the player character/body in the new world? Or are there better ways to preserve the bodies and elements that should be carried over from room to room (and world to world)?
Thanks for the help and advice