Quote: "Use the Draw Sprites First command."
exactly how would I do that.
EDIT: I used the command, but all I got was a black screen with the music. Heres the plasma code:
set display mode 640,480,32
draw sprites first
load sound "sound.wav", 1
loop sound 1
get image 1,0,0,640,480,1 : make memblock from image 1,1 : randomize timer() : sync on : sync rate 0 : hide mouse : Dim colors( 256 )
For i = 0 To 63 : colors( i ) = rgb(i*10,i*80,60-(i*4)) : colors( i+64 ) = rgb(20-(i*4),i*2,0) : colors( i+128 ) = rgb(i*2,30-(i*2),i*4) : colors( i+192 ) = rgb(50+(i*2),i,255-(i*4)) : Next i
pixelate=rnd(15)+2 : Dim sinus#( 1280 ) : For i = 0 To 1280 : sinus#( i ) = cos( ( 360 * i ) / 640.0 ) * pixelate : Next i
sprite 1,0,0,1 : set sprite 1,0,1 : set sprite alpha 1,10 : hide sprite 1 : r=rnd(128)+64 : g=rnd(128)+64 : b=rnd(128)+64 : r1=1 : g1=2 : b1=3
Repeat
time=timer() : If time > Delay
Delay = time+2
inc wave1,4 : inc wave2,5 : inc wave3,2 : inc r,r1 : inc g,g1 : inc b,b1
If wave1 >= 639 Then wave1 = wave1 - 640
If wave2 >= 639 Then wave2 = wave2 - 640
If wave3 >= 639 Then wave3 = wave3 - 640
if r<20 or r>250 then r1=0-r1
if g<20 or g>250 then g1=0-g1
if b<20 or b>250 then b1=0-b1
set sprite diffuse 1,r,g,b
For y = 0 To 479 : d = sinus#( y + wave2 ) + sinus#( y + wave3 ) : For x = 0 To 639 : f = ( sinus#( x + wave1 ) + sinus#( x + y ) + d ): f=f && 255 : memPos = (y*640*4)+(x*4) : WRITE MEMBLOCK DWORD 1,memPos+12,colors(f) : Next x : Next y
make image from memblock 1,1
paste sprite 1,0,0
EndIf : sync
Until mousemovex()
and heres the object code:
load object "psy.x",1
load image "psy.jpg",1
texture object 1, 1
do
yrotate object 1, object angle y(1)+.1
xrotate object 1, object angle x(1)+.001
zrotate object 1, object angle z(1)-.001
loop
How would i properly combine them using the draw sprites first command?
"I admire its purity, a survivor, unclouded by conscience, remorse, or delusions of morality"