So I am making a game for school and it is in its very early stages. I am trying to have the X,Y and Z numbers show but they won't show up. Is there something wrong with my code? Or is it something else.
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 Story
REM REFRESH SCREEN
sync
loop
Story:
cls 0
Center text 320,240, "Welcome to INSERT NAME HERE! This game is about the ways people got to California from the East coast!"
Level1:
cls 0 : backdrop on
make object cube 1,100
scale object 1,100,140,100
make object box 3,100000 ,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,100000,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 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
print "X ";P1X#
Print "Y ";P1Y#
Print "Z ";P1Z#
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