Okay,
For some reason, I cannot get sparky's collision to work on my computer. The editor will not even recognize the keywords.
So instead , I tried the code that Mr.Mobiius posted on May 6th, also with no results.
Is it because I am not using a collision box on object three and a SET OBJECT COLLISION TO POLYGONS command instead?
do
if upkey() then move object 1,5
OldX# = Object Position X( 1 )
OldY# = Object Position Y( 1 )
OldZ# = Object Position Z( 1 )
if downkey() then move object 1,-5
if leftkey() then yrotate object 1, wrapvalue(object angle y(1)-4) : facing# = facing# - 4.5
if rightkey() then yrotate object 1, wrapvalue(object angle y(1)+4) : facing# = facing# + 4.5
set camera to follow object position x(1), object position y(1), object position z(1), facing#, 300, 200, 200, 1
for X = 1 to 6
if object collision(1,X) = 1
position object 1, (OldX#), (OldY#), (OldZ#)
endif
Next X
loop
make object box 3,300,5000,400
load image "E:\advanced tech\Final Game\Images\skyscraper.jpg",3
texture object 3,3
position object 3,400,0,-800
rem make object collision box 3,250,-2500,-600,550,2500,600,1
set object collision to polygons 3
load object "E:\advanced tech\Final Game\Models\Man\roomdemo.x",1
set object specular 1,0
xrotate object 1,270
fix object pivot 1
rotate object 1,0,180,0
set object speed 1,12
make object collision box 1,-40,0,-40,40,150,40,1
position object 1, 0,50,0
set object collision on 1
position object 1,0,0,0
-Sa