If the Game SDK works like DBP you can use the image numbers with disable object zread to make them draw in whatever order you want. No matter which order they were created in.
`make textures so you don't need any media
create bitmap 1,screen width(),screen height()
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
get image 1,0,0,screen width(),screen height()
cls
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
get image 2,0,0,screen width()/2,screen height()/2
cls
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
get image 3,0,0,screen width()/2,screen height()/5
cls
delete bitmap 1
set current bitmap 0
`Here is actual code
sync on: sync rate 60
autocam off
color backdrop 0
position camera 0,0,-7.7
`make plain to use for drawing to the back
make object plain 1,12,8
texture object 1, 1
set object transparency 1,1
`make object for middle drawing
make object sphere 2,5
texture object 2, 2
position object 2,0,0,5
`draw in front
make object plain 3,500,500
position object 3, 0, -50, 1000
texture object 3, 3
disable object zread 3
set object transparency 3, 1
direction = 1
do
if direction = 1
position object 2,0,0,object position z(2) + .05
if object position z(2) >= 7
direction = 0
endif
endif
if direction = 0
position object 2,0,0,object position z(2) - .05
if object position z(2) <= -2
direction = 1
endif
endif
if spacekey() = 0
disable object zread 1
else
enable object zread 1
endif
if returnkey() = 0
disable object zread 3
else
enable object zread 3
endif
set cursor 5,5
print object position z(2)
set cursor 5,20
if object position z(2) >= 2.5
print "Sphere is behind plain"
endif
if object position z(2) <= 1
print "Sphere is in front of plain"
endif
sync
loop
Works the same as:
`make textures so you don't need any media
create bitmap 1,screen width(),screen height()
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
get image 1,0,0,screen width(),screen height()
cls
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
get image 2,0,0,screen width()/2,screen height()/2
cls
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
get image 3,0,0,screen width()/2,screen height()/5
cls
delete bitmap 1
set current bitmap 0
`Here is actual code
sync on: sync rate 60
autocam off
color backdrop 0
position camera 0,0,-7.7
`draw in front
make object plain 3,500,500
position object 3, 0, -50, 1000
texture object 3, 3
disable object zread 3
set object transparency 3, 1
`make plain to use for drawing to the back
make object plain 1,12,8
texture object 1, 1
set object transparency 1,1
`make object for middle drawing
make object sphere 2,5
texture object 2, 2
position object 2,0,0,5
direction = 1
do
if direction = 1
position object 2,0,0,object position z(2) + .05
if object position z(2) >= 7
direction = 0
endif
endif
if direction = 0
position object 2,0,0,object position z(2) - .05
if object position z(2) <= -2
direction = 1
endif
endif
if spacekey() = 0
disable object zread 1
else
enable object zread 1
endif
if returnkey() = 0
disable object zread 3
else
enable object zread 3
endif
set cursor 5,5
print object position z(2)
set cursor 5,20
if object position z(2) >= 2.5
print "Sphere is behind plain"
endif
if object position z(2) <= 1
print "Sphere is in front of plain"
endif
sync
loop
And this:
`make textures so you don't need any media
create bitmap 1,screen width(),screen height()
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
print "Testing Draw To Back : Testing Draw To Back : Testing Draw To Back"
get image 1,0,0,screen width(),screen height()
cls
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
print "Object : Object : Object : Object : Object : Object : Object"
get image 2,0,0,screen width()/2,screen height()/2
cls
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
print "Testing Draw To Front : Testing Draw To Front : Testing Draw To Front : Testing Draw To Front"
get image 3,0,0,screen width()/2,screen height()/5
cls
delete bitmap 1
set current bitmap 0
`Here is actual code
sync on: sync rate 60
autocam off
color backdrop 0
position camera 0,0,-7.7
`make plain to use for drawing to the back
make object plain 3,12,8
texture object 3, 1
set object transparency 3,1
`make object for middle drawing
make object sphere 2,5
texture object 2, 2
position object 2,0,0,5
`draw in front
make object plain 1,500,500
position object 1, 0, -50, 1000
texture object 1, 3
disable object zread 1
set object transparency 1, 1
direction = 1
do
if direction = 1
position object 2,0,0,object position z(2) + .05
if object position z(2) >= 7
direction = 0
endif
endif
if direction = 0
position object 2,0,0,object position z(2) - .05
if object position z(2) <= -2
direction = 1
endif
endif
if spacekey() = 0
disable object zread 3
else
enable object zread 3
endif
if returnkey() = 0
disable object zread 1
else
enable object zread 1
endif
set cursor 5,5
print object position z(2)
set cursor 5,20
if object position z(2) >= 2.5
print "Sphere is behind plain"
endif
if object position z(2) <= 1
print "Sphere is in front of plain"
endif
sync
loop
It doesn't even matter what order the images are loaded in. Loaded objects with disable object zread will draw behind created ones with disable object zread unless you retexture the loaded objects. Beacuse otherwise they will have negative image numbers and be lower.