Simple way to make a "radar" using a second camera. Works in DBPro, i don't think DBC supports multiple cameras. Code sets a second camera at a top-down view which isn't a "radar" but does the job in displaying whats around the player.
set display mode 800,600,32
sync on
sync rate 60
autocam off
set camera fov 90
make matrix 1,100,100,2,2
for i=1 to 100
make object cube i, 1.0
position object i, rnd(100),1,rnd(100)
color object i,rgb(0,255,0)
next i
rem make "radar" camera
make camera 1
rx=200
ry=150
set camera view 1,0,0,rx,ry
set camera fov 1,90
rem black background
color BACKDROP 0,0
color backdrop 1,0
rem place camera 0
position camera 0,50,2,50
Angle=0
do
ink rgb(0,255,0),0
line 0,ry+1,rx+1,ry+1
line rx+1,0,rx+1,ry+1
position camera 1,camera position x(0),40,camera position z(0)
move camera 0,0.1
point camera 1,camera position x(0),camera position y(0),camera position z(0)
move camera 0,-0.1
if upkey() then move camera 0.2
if downkey() then move camera -0.2
if leftkey() then Angle=wrapvalue(angle-1)
if rightkey() then Angle=wrapvalue(angle+1)
yrotate camera Angle
sync
loop
-----------------------------------
To delete the bug, delete the code.
Specs: Sony VAIO Laptop, Windows XP, P4 2.8Ghz, 512MB RAM, ATI Radeon 64MB video memory, DBP Upgrade 5.3.