I am making a game for school using dark basic pro and I am trying to get the X y and z coordinates to display. But when I try to display the numbers on the screen, the x ,y ,and z just stay at zero. What do I do to fix this? (And yes I made a post about this already but I didn't really get an answer.)
REM Project: Test 2
REM Created: 1/7/2014 8:00:08 AM
REM
REM ***** Main Source File *****
REM
autocam on
hide mouse
center text 320,240, "Welcome to the Game! Press Any key to continue!"
do
REM CONTROL INPUT
key=scancode() : if Keystate(key)=1 then gosub Level1
REM REFRESH SCREEN
sync
loop
Level1:
cls 0 : backdrop on
make object cube 1,100
scale object 1,100,140,100
make object box 3,10000,2000,10
rotate object 3,0,90,0
position object 3,1005,500,0
make object box 4,2000,2000,10
rotate object 4,0,180,0
position object 4, 0,500,-1005
make object box 5,10000,2000,10
rotate object 5,0,270,0
position object 5, -1005,500,0
make object sphere 2,100
position object 2, 300,0,300
make object sphere 6,100
position object 6,-300,0,375
position camera -100,100,-100
point camera 0,0,0
yrotate camera -90
P1X# = object position X(1)
P1Y# = object position Y(1)
P1Z# = object position Z(1)
A1X = object angle X(1)
A1Y = object angle Y(1)
A1Z = object angle Z(1)
BoatSpeed=1
do
set cursor 0,20
print P1X#
print P1Y#
print P1Z#
set camera to follow object position x(1), object position y(1), object position z(1), object angle y(1), 190, 290, 100, 0
move object 1,BoatSpeed
if downkey()=1 then move object 1,-2-BoatSpeed
if Leftkey()=1 then move object left 1,Boatspeed
if Rightkey()=1 then move object right 1,BoatSpeed
if Inkey$()="q"
delete object 1 : backdrop off :
endif
loop
end