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 after compiling

Author
Message
WarHunterX
21
Years of Service
User Offline
Joined: 25th Mar 2003
Location:
Posted: 26th Mar 2003 00:31
Im new at DarkBASIC, and I am trying to get this bit of code to work, theres something wrong so can somebody please lend me a hand? thanks The code seems to compile right but when it starts the game, theres black screen at first then the game instantly closes, as if I hit the escape key.

Here it is:


sync on
sync rate 60
autocam off
hide mouse
load image "t04.jpg", 2
Load object "map.x",1
texture object 1, 2
position object 1, 0,0,0
position camera 0,0,0
circle 320,240,2
xrotate camera mousex()
yrotate camera mousey()

NOTE: I tried it w/o the sync and mouse stuff but still no luck
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Mar 2003 00:36
It's doing exactly what you tell it to do - loading the image, positioning the camera, draw a circle, adjust the camera accoring to the mouse position ... then nothing more.

If you you don't want it to end then put a loop in there.

Try something like this:

WarHunterX
21
Years of Service
User Offline
Joined: 25th Mar 2003
Location:
Posted: 26th Mar 2003 00:50
oh i see, thanks alot man x-d

Login to post a reply

Server time is: 2024-09-20 01:08:04
Your offset time is: 2024-09-20 01:08:04