I made some code to load a quake 3 level and be able to move around in but when I compile the exe it flickers then gos back to DBpro.
set display mode 1024, 768, 32
sync on : sync rate 30
hide mouse
load bsp "pak0.pk3", "q3tourney2.bsp"
make camera 1
position camera 1, 0, 0, 0
oldpositionx#=camera position x()
oldpositionz#=camera position z()
rotate camera camera angle x(0)+(mousemovey()/2.0),camera angle y(0)+(mousemovex()/2.0),0
cx#=camera angle x(0) : cy#=camera angle y(0)
if upkey()=1 then xrotate camera 0,0 : move camera 0,0.2 : xrotate camera 0,cx#
if downkey()=1 then xrotate camera 0,0 : move camera 0,-0.2 : xrotate camera 0,cx#
if leftkey()=1 then yrotate camera 0,cy#-90 : move camera 0.2 : yrotate camera 0,cy#
if rightkey()=1 then yrotate camera 0,cy#+90 : move camera 0.2 : yrotate camera 0,cy#
sync
(\__/)
(O.o )
(> < )This is Bunny. Copy Bunny into your signature to help him on his way to world domination!