Hilo there,
I made this simple program because im helping a friend learn about DBP, but this crashes on compilation. There maybe some obsolete stuff there, but every command i typed was highlighted blue in the editor. It isnt my copy of db gone dodgy, coz i tried a simple hello world program which compiled nicely. Anyway, i thought if i did use obsolete commands then the compiler would at least throw an error in my face, but i get one of those big white boxes saying that its caused an error, with no info on the error at all :S
autocam off
sync on
sync rate 30
hide mouse
for x = 1 to 20
make object cube x,100
position object x,rnd(500),rnd(500),rnd(500)
next x
do
camang# = camera angle y()
if upkey() = 1
move camera 2
endif
if downkey() = 1
move camera -2
endif
if rightkey() = 1
yrotate camera wrapvalue(camang#+5)
endif
if leftkey() = 1
yrotate camera wrapvalue(camang#-5)
endif
sync
loop