Hey. I've got a Sonic game and I plan to make it have multiple stages. I realised that if I loaded a second stage, it would result in loading it on top of the first stage.
Is there anyway of removing all the models from the previous stage prior to placing the next stage on it?
Here's my current structure:
;Globals
Global PlayerName ...
;Loop One
Loop
;Menu and settings codes
PlayerName$ = "Sonic" ...
;Loop 2
Loop
;Rendering
Player = LoadAnimMesh(PlayerName) ...
;Loop 3
Loop
;Updating and Controls
imports "controls.bb" ...
End Loop
End Loop
End Loop
|