ckn087 wrote:Also what is the best way to create levels? I have them in separate ged files but i heard that wasn't the best idea in case i want to change a character like (player) because i would have to change it in every ged file.
I would make multiple .ged files:
- One for the intro and/or menu
- One for each level
When you export the intro (file -> export), you choose an executable file format. This will generate an .exe file
When you export the levels, you choose "game data only". This wil generate a .dat file, which is the same as the exe but without the game engine included.
In your game you just load the .dat file with the load game function(LoadGame("Level1.dat")
The tricky thing is that if you have variable that should keep it's value (score, lifes, upgrades, ...) you should export the variables to a text file before you load a new level, and read the text file after loading the level.
Hope this helps