Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / I have my first level done now what??

Author
Message
sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 20th Mar 2006 01:39
I am making a remake of mars lander. I have the first level done and not sure what the best way to go here. Do I just make a function for the next level and play the game in that function? should I use gosub level 2? I have never made more than one level befor.
Thank you for all your help.
renny/sadsack
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 20th Mar 2006 12:43
If just the background map changes then it's just Read map each time. Everything else should automatically work. Or maybe you have a random map generator? I don't exactly know what you change each time without the code.

sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 21st Mar 2006 01:40
[/code][code]hey Pincho,
That read map, will that work with bitmap?
renny/sadsack
RUCCUS
21
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 21st Mar 2006 01:49
Its not a command. Hes suggesting that if all you're changing each map is the background image (thereby being the actual map) then the only thing you'd have to change is that, the background image. So perhaps having a variable called Map, and setting the Map variable to equal the level the user is on. Then loading the corresponding image for the Map variable. So, if your level 1 map is image 5, then you'd either start the Map variable out at 5 and load the image number of Map, or you'd start Map out at one and load the image number of Map + 5.

On the other hand if you're changing locations of dynamic moving characters, items that can be picked up, etc. Then you'd most likely want to go to a function. This route is up to you though, it really depends on whats going on the game, what will happen in the next level, etc. If you gave more info on what you need to load each level and what needs to be removed, more help could be provided.

sadsack
22
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 22nd Mar 2006 01:44
ok I got it. I will most likely have to go to a functions. Thanks RUCCUS for you help.
renny/sadsack

Login to post a reply

Server time is: 2026-07-01 21:22:20
Your offset time is: 2026-07-01 21:22:20