The order sprites are displayed in in DBC is the order they are created in, so can create all of your higher values first.
cls rgb(255, 0, 0)
get image 1, 0, 0, 64, 64
cls rgb(0, 255, 0)
get image 2, 0, 0, 64, 64
cls rgb(0, 0, 255)
get image 3, 0, 0, 64, 64
cls 0
` Red sprite created first, so will be at the back
sprite 1, 0, 0, 1
` Blue sprite create next, so will be in the middle, despite having a higher sprite number
sprite 3, 0, 48, 3
` Green sprite created last, so will be on top of the others
sprite 2, 32, 32, 2
wait key
end
That's the first time I've started up DBC this year ...