I have the current code, which basically sets all the sprites priorities to 0 and then sets the sprite I want on top to 1. This makes the sprite I want on top, but any sprites underneath are still drawn in the order they were made. I want it so that the sprites stay in their order and the one I specify comes to the top.
ink rgb(255,0,0),0
box 0,0,10,10
get image 1,0,0,10,10
cls
ink rgb(0,255,0),0
box 0,0,10,10
get image 2,0,0,10,10
cls
ink rgb(0,0,255),0
box 0,0,10,10
get image 3,0,0,10,10
cls
sprite 1,0,0,1
sprite 2,3,2,2
sprite 3,6,0,3
do
if val(inkey$())>0 and val(inkey$())<4
set sprite priority 1,0
set sprite priority 2,0
set sprite priority 3,0
set sprite priority val(inkey$()),1
endif
loop
Brains are for idiots.
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM