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 would avoid the use of gosub; rather, I would consider this way:

if playerpoints = 5 AND current_level = 1 then ;note that you don't need a float variable to store the player score
current_level = 2;set the new current level

;now I think you should load the new level as you did
;but first you should discard the previous one with
;freemesh or freentity command

the_level = loadmesh("level2.b3d")

;now you should warp the player at the x,y,z position where the new level should start from

endif


Consider, also, to show a briefing screen where to inform the player that a new level has been reached; show the score, and such, and give a 'press space to enter the new level' message. After that, then release the old mesh, load the new one, warp the player and... play !

Hope this has sense for you,
Sergio.

P.S.
jhocking you're so fast !!
;)