Next level

Blitz3D Forums/Blitz3D Beginners Area/Next level

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am working on a 3d game that has 5 levels in it. It is a FPS. Each level looks dramatically different. The levels are each made in maplet. My question is, how do I code it so that when a player get 5 points , the level he is on ends, and another one begins. I think, it may go something
like this.......



if playerpoints#>4 and playerpoints#<6
GOSUB leveltwo
endif

leveltwo.
loadmesh("level2.b3d")
return