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.

DarkBASIC Discussion / multiple levels, going back doesn't work.. :'(

Author
Message
Mitchell
21
Years of Service
User Offline
Joined: 1st Mar 2004
Location: The Netherlands
Posted: 5th Aug 2004 23:59
hi. I've just finished my first 3d game, and everything is in seperate .dba files.. I made the levels in 1 file like this:

do
if spacekey()=1 then level=1
loop

if level=1
level code
if endoflevel then level=2:exit
endif

if level=2

etc...

This works for when I want to go to a higher level, but going to a lower level, it simply ends the program. like,

if level=1 then level=2 : exit `works
if level=2 then level=1 : exit `doesn't work

what am I doing wrong?
thanks in advance, mitch

"A delayed game is eventually good, a bad game is bad forever"
- Shigeru Miyamoto
kidsa
21
Years of Service
User Offline
Joined: 8th Dec 2003
Location: MA,usa
Posted: 6th Aug 2004 09:44
im jsut confused

any language used by me will be dbpro(saves me a lot of typing)

Login to post a reply

Server time is: 2025-05-25 16:47:13
Your offset time is: 2025-05-25 16:47:13