I have made changes, nothing is part of rem which shouldnt be and still i get the same problem
`Load the univese file here
gdividetexturesize = 0 : universefile$ ="UNIVERSEFILEHERE"
load static objects "Files\levelbank\testlevel\universe.dbo",0
Rem load the universe static model for physics calculation
load object 1,"Files\levelbank\testlevel\universe.dbo" : hide object 1
sc_setupobject 1,0,0
I still get this message
Parameter for 'LOAD OBJECT' do not match 'Filename, Object Number' at line 27. Which is the line load object 1,"Files\.......
This is full code below
Rem Template for FPS Creator World loading with Collisions
sync rate 60 : sync on
`Load the univese file here
gdividetexturesize = 0 : universefile$ ="UNIVERSEFILEHERE"
load static objects "Files\levelbank\testlevel\universe.dbo",0
Rem load the universe static model for physics calculation
load object 1,"Files\levelbank\testlevel\universe.dbo" : hide object 1
sc_setupobject 1,0,0
Rem Player's camera collision object
Make Object Cube 2,5 : hide object 2
sc_setupobject 2,0,2
do
oldx#=object position x(2)
oldy#=object position y(2)
oldz#=object position z(2)
`Camera Control Code here
if
rightkey() then move object right 2,5
if leftkey() then move object left 2,5
if upkey() then move object 2,5
if downkey() then move object 2,-5
Position Camera object position x(2),object position y(2),object position z(2)
sc_updateobject 2
`Static Volume collision
if sc_spherecast(0,oldx#,oldy#,oldz#,object position x(2),object position y(2),object position z(2),object size(2),2)>0
position object 2,sc_getstaticcollisionx(),sc_getstaticcollisiony(),sc_getstaticcollisionz()
Position Camera object position x(2),object position y(2),object position z(2)
sc_updateobject 2
endif
sync
loop
If anyone can solve problem will be very happy.