Hi there
What am I doing wrong with this code?
I only get a black screen...
// set window properties
SetWindowTitle( "Test" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetvirtualResolution( 1024, 768 )
white=makecolor(255,255,255)
drawline(0,0,100,100,white,white)
render()
line=getimage(0,0,100,100)
createsprite(1,line)
SetSpritePosition(1,100,100)
do
sync()
loop
EDIT: Ha ha.. I forgot to Swap
// set window properties
SetWindowTitle( "Test" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetvirtualResolution( 1024, 768 )
white=makecolor(255,255,255)
swap()
drawline(0,0,100,100,white,white)
render()
line=getimage(0,0,100,100)
createsprite(1,line)
SetSpritePosition(1,100,100)
do
sync()
loop
I never want what I know.