My question is:
How you you handle loading & unloading Worlds/Levels in GE?
No one has really been able to answer this clearly.
lcl wrote:As most things, this can be done in multiple ways.
Here's some of them:
-separate .ged files exported as .dat files, loaded by using LoadGame();
-all levels in one .ged separated by activation regions for avoiding lag
-make a level editor for the game, make it to make the levels as files, which the game them reads and then generates the levels
As for building a level one usually uses tiles or clones (clones only when using exterior files for storing the level data). This goes for 2D platformer games, it really depends on what kind of game you are making.
In future, it would be easier to answer your questions if they were more specific, since things can always be done in many ways, but not all are efficient in all cases.
knucklecrunchgames wrote:This may or may not help,
On the main menu there is elect world, but one of them says DLC, the player clicks into that and the game loads this DLC menu saying select your DLC world you wanna play.
Hope it helps, BTW I agree for the DLC, I'm all over it
skydereign wrote:You do so by saving and loading variables to a file. As long as both dat files can read the file, they can pass data to each other.
skydereign wrote:In a way yes. You don't have to store it in human readable form, as well as you can put in checksums to prevent tampering. But the file will need to exist, as that is the only way of passing data out of a game in gE.
DragonRift wrote:I am trying to understand how to store stuff like Variable Information to/from flat files. Would you guys be able to help explain this stuff in detail in reference to how GE handles this since I see that I am not the only one in the community asking about this stuff.
http://www.cprogramming.com/tutorial/cfileio.html
skydereign wrote:Okay, first off, gE uses C, so C++ functions won't work. Also, really there is nothing special about file io in gE, so tutorials for how to do it in C will work just fine in gE.
- Code: Select all
http://www.cprogramming.com/tutorial/cfileio.html
Users browsing this forum: No registered users and 1 guest