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
PS: This game is for the Acoders compo, and that deadline is 2 days from now. I need to know fast so I posted here, since I think this is the most frequently viewed forum. I know it's the wrong place, but I really need to get my game together, and send it to the compo thing. Sorry.
"A delayed game is eventually good, a bad game is bad forever"
- Shigeru Miyamoto