level2:
If object exists(100) then delete object 100
load object "level2.3ds",100
return
Admittedly you would have to do more loading and deleting than this, but thats basically it.
A subroutine is a block of code that you have put outside the main block of code - that's all.
Here's a
very basic subroutine:
`your main loop
do
if mouseclick()=1 then dot mousex(),mousey()
if returnkey()=1 then gosub changecolour
loop
`your gosub
changecolour:
`commands go here - in this case, change ink colour
ink rgb(rnd(255),rnd(255),rnd(255)),0
`moves you back to the place in the code where you were before the subroutine was called
return
{reason for editing - typos in code}
Am I the only one here who's really confused?
http://db1games.topcities.com
(used to be demonsbreath)