Ok, I've got two cameras. One on top and one on bottom. The only problem is that the top camera's view looks WAY wider than it should.
Here is my code.
Rem Project: Tank Arena
Rem Created: 1/18/2007 3:34:29 PM
Rem ***** Main Source File *****
rem basic settings
hide mouse
sync on : sync rate 60
sync : center text screen width()/2, screen height()/2,"Loading..." : sync
wait 3000
rem loading media
load object "Warrior.x",1 : load object "Warrior.x",2
load image "foliage.bmp",1
rem making world
make matrix 1,3000,3000,10,10
prepare matrix texture 1,1,10,10
rem adjusting size and orientation of models
scale object 1,50,50,50
xrotate object 1,-90
yrotate object 1,45
scale object 2,50,50,50
xrotate object 2,-90
yrotate object 2,-135
rem positioning
position object 1,250,0,250
position object 2,2750,0,2750
rem making and editing cameras
set camera range 0,5000
set camera view 0,0,1024,384
color backdrop rgb(150,150,255)
position camera object position x(1)-300,300,object position z(1)-300
point camera object position x(1),object position y(1),object position z(1)
make camera 1
set camera range 1,0,5000
set camera view 1,0,384,1024,768
color backdrop 1,rgb(150,150,255)
position camera 1,object position x(2)+300,300,object position z(2)+300
point camera 1,object position x(2),object position y(2),object position z(2)
rem main loop
do
rem setting player 1 and player 2 controls
if keystate(72) then move object down 1,5
if keystate(75) then yrotate object 1,object angle y(1)-2
if keystate(77) then yrotate object 1,object angle y(1)+2
if keystate(17) then move object down 2,5
if keystate(30) then yrotate object 2,object angle y(2)-2
if keystate(32) then yrotate object 2,object angle y(2)+2
rem setting camera to follow players
position camera object position x(1)-300,300,object position z(1)-300
point camera object position x(1),object position y(1),object position z(1)
position camera 1,object position x(2)+300,300,object position z(2)+300
point camera 1,object position x(2),object position y(2),object position z(2)
rem updating screen
sync
rem end loop
loop
Can someone tell me what's wrong?
I don't suffer from laziness... I enjoy every minute of it!