well kind of. when i put the code in by itself it works but when i try to incorporate it into the rest of my key commands it keeps messing up. the screen keeps flashing and you cant tell whats going on. im so confused. im not using 3d and i cant figure out what to do. im trying to work it but cant understand. i've come up with something but it still isn't working. here is what i have. i know why it isn't working but i dont know what to do.
this is my entire keypress command line.
main:
sprite 1,320,240,100
while FL_GameDone<>1
cls 1
Tile_Plotter()
if escapekey()=1 then FL_GameDone=1
if rightkey()=1 then offsetx=offsetx-8
if leftkey()=1 then offsetx=offsetx+8
if downkey()=1 then offsety=offsety-8
if upkey()=1 then offsety=offsety+8
if spacekey()=1 and space=0 then space=1
if spacekey()=1 and space=1 then space=0
if space=1 then paste image 200,512,0
if space=0 then delete image 200
gosub handle_mouse
sync
endwhile
i know that it isn't working becasue when i hold down the spacekey that is =1 so it pastes and deletes the image. how so i make it so that it doesn't do this.(you dont have to bother the other key commands as they are fine it was just to help you incorporate the spacekey command better) and i cant post the entire code because it is for a project i am helping a friend with and he wants to kepp the code as closed as possible until its release(and even then he's still not sure about making it open source)
Current Status: learning MORE about dbpro
I consider myself: newb