I've improved your code
You can control one camera now.
` *************************************
` * split screen demo by dancedreemer *
` * improved by jopie dopie *
` *************************************
`split screen demo shows how to make the camera see in diffrent directions
` for games like mario cart ect... or any multiplayer style games :)
`set up screen
sync on
`set sync rate to zero
sync rate 0
`hide the mouse
hide mouse
`make,color and position object 1
make object cube 1,10
color object 1,rgb(255,0,0)
position object 1,120,0,0
`same as above but for object 2
make object cone 2,10
color object 2,rgb(0,255,0)
position object 2,100,1,0
`make the cam object
make object cube 3,10
color object 3,rgb(123,0,255)
`get objects current y angle
a# = object angle y(1)
b# = object angle y(2)
cam2x#=70
`start the loop
do
`desplay title
set text font "arial black"
set text size 30
ink rgb(0,255,0),0
text 80,0,"SPLIT SCREEN DEMO BY DANCEDREEMER"
text 80,20," IMPROVED BY JOPIE DOPIE"
`set up pivot point
fix object pivot 1
fix object pivot 2
`spin the objects in opposite directions
yrotate object 1,wrapvalue(a#+1)
yrotate object 2,wrapvalue(b#-1)
`position and point the first view camera
position camera 100,80,80
point camera 100,0,0
set camera view 320,0,640,239
`control the second camera
if upkey()=1 then cam2x#=newxvalue(cam2x#,yr#,2):cam2z#=newzvalue(cam2z#,yr#,2)
if downkey()=1 then cam2x#=newxvalue(cam2x#,yr#,-2):cam2z#=newzvalue(cam2z#,yr#,-2)
if leftkey()=1 then yr#=wrapvalue(yr#-3)
if rightkey()=1 then yr#=wrapvalue(yr#+3)
`position and point the second view camera
xrotate camera 0
position camera cam2x#,0,cam2z#
position object 3,cam2x#,0,cam2z#
yrotate object 3,yr#
yrotate camera yr#
set camera view 320,240,640,480
`syncronize
sync
`loop it
loop
if I = 1 then I = 1 else I = 0