1 decade ago by mandarin
Hello!
I have started working on a game like the good old vertical scroller 1942 but am wondering how to do the levels.
At first I thought about writing a plugin that could generate levels on the fly, but since this project is just for fun I dropped the idea. I really like Weltmeister and find designing levels almost as fun as playing them. So I have for the moment settled on the idea of designing each level by hand.
The only problem I am facing is that I cannot seem to find a way to load two levels at once, and place them after eachother. I'd like it work like this: first level is loaded, and when the plane is getting near the end of the level the next level is loaded and placed on position level1.pos.y - level2.height. Level one gets deleted as soon as it has scrolled past the bottom of the screen.
Does anyone have any ideas on this?
Regards,
Thomas
I have started working on a game like the good old vertical scroller 1942 but am wondering how to do the levels.
At first I thought about writing a plugin that could generate levels on the fly, but since this project is just for fun I dropped the idea. I really like Weltmeister and find designing levels almost as fun as playing them. So I have for the moment settled on the idea of designing each level by hand.
The only problem I am facing is that I cannot seem to find a way to load two levels at once, and place them after eachother. I'd like it work like this: first level is loaded, and when the plane is getting near the end of the level the next level is loaded and placed on position level1.pos.y - level2.height. Level one gets deleted as soon as it has scrolled past the bottom of the screen.
Does anyone have any ideas on this?
Regards,
Thomas