or maybe instead of one huge game area, where it is hard to change levels (moving viewport) add level/frame support with different actors scripts and vars for each level+eventually clone level functionality and ad command like change_level(char *levelname), where levelname would be string. For example change_level ("main_menu"). Of course "levels" don't have to be actual levels it can be also menus or something like this. I mean every level will be actual game area as it now. But you could make more areas (i mean levels) and don't have to store every level with another in this way:
- Code: Select all
_________ _________
| level 1 | | level 2 |
_______===============__________
| level 3 | | main menu |
but you will have different, independ areas (levels) named level 1, level 2, level 3, and main menu. Betweeen this levels you'll switch with change_level(char *levelname) script command. Of course every level will have another set of actors, events, scripts and variables.