I have a small game where you can draw your own character on the screen and then play with it in the game.
However when I use the get image command it does not copy the things that you drew and only the white box behind it.
How can I fix this?
sync on : sync rate 0
set display mode 1024,768,32
sw = screen width()
sh = screen height()
white = rgb(500,500,500)
cls white
ink rgb(0,0,0),1
center text sw/2,10,"Draw Your Character"
ink rgb(0,0,0),1
box sw/2-100,sh/2-200,sw/2+100,sh/2+40
ink rgb(500,500,500),1
box sw/2-95,sh/2-195,sw/2+95,sh/2+35
ink rgb(0,0,0),1
center text sw/2,sh/2+60,"Press Enter When Finsihed"
do
if mouseclick() = 1
dot mousex(),mousey()+1
dot mousex(),mousey()+2
dot mousex()+1,mousey()
dot mousex()+2,mousey()
dot mousex()+3,mousey()+1
dot mousex()+3,mousey()+2
dot mousex()+1,mousey()+3
dot mousex()+2,mousey()+3
dot mousex()+1,mousey()+1
dot mousex()+2,mousey()+2
dot mousex()+2,mousey()+1
dot mousex()+1,mousey()+2
endif
if returnkey() = 1
exit
wait 100
endif
sync
loop
get image 1,sw/2-95,sh/2-195,sw/2+95,sh/2+35
cls rgb(500,500,500)
do
cls rgb(500,500,500)
if leftkey() = 1
dec X
endif
if rightkey() = 1
inc X
endif
if upkey() = 1
dec Y
endif
if downkey() = 1
inc Y
endif
sprite 1,X,Y,1
print X
print Y
sync
loop
Thanks!
Cheers,
Capt. America