Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Help!! a bug or what???

Author
Message
Silveraxe
21
Years of Service
User Offline
Joined: 15th Jan 2003
Location:
Posted: 19th Aug 2003 13:00
you see this code..

when i click the mouse..the program just exits.... not like when you use END so the CLI will appear.... just exits....

it has something to do with the SYNC command ,cause it works fine without manual sync...

ANYWAY now when i use sync and change the second picture loading to 2..instead of 1 it works....

This is real crappy

any comments????
Silveraxe
21
Years of Service
User Offline
Joined: 15th Jan 2003
Location:
Posted: 19th Aug 2003 13:01
sync on

load image "water.bmp",1

repeat

paste image 1,0,0
sync

until mouseclick()=1

load image "grass.bmp",2
paste image 2,90,90
sync

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 19th Aug 2003 15:48
try adding these at the end of that code


center text screen width()/2,screen height()/2,"press a key to end"
sync
suspend for key
delete image 1
end

CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 19th Aug 2003 15:58
sync on
load image "water.bmp",1
repeat
paste image 1,0,0
sync
until mouseclick()=1
load image "grass.bmp",1
`(your useing the same image number but that wont cause a error)
`(but if you want to paste the water image any more it's gone and you have to reload it.)
`(best to use different image numbers.)
paste image 1,90,90
sync
`(yes this is the end theres nothing here to stop it from exiting)
`(it shows image 1 it is so fast that you probably don't see it)
`(add a delay or mouse click or key press wait)
wait 2000
`(always delete the images at the end or you system resources will drop.)
delete image 1
Silveraxe
21
Years of Service
User Offline
Joined: 15th Jan 2003
Location:
Posted: 20th Aug 2003 13:27
yeees but if the program exits the CLI is supposed to come up right....

this was just an example

I used similar code in a program which had a SYNC-LOOP later on...


oh? so all the pics remains in the RAM? even after program shutdown??? or what??

Login to post a reply

Server time is: 2024-09-20 19:34:34
Your offset time is: 2024-09-20 19:34:34