Posted: 22nd Dec 2008 23:40
That still doesnt work. My character still falls through the floor when the game starts. The code for that section looks like this:
MAKE MATRIX 6,2000.0,2000.0,30,30
position matrix 6,-1005,2,-1005
rem Texture landscape
PREPARE MATRIX TEXTURE 6,99,1,1
rem Randomize landscape
RANDOMIZE MATRIX 6,35.0
rem Activate and distance fogging
FOG ON
FOG COLOR -5
FOG DISTANCE 5000
REM OBJECT CREATION
Rem Player Character
make object cylinder 1,50
scale object 1,100,140,100
texture object 1,1
PlayerX#=Object position X(1)
PlayerZ#=Object position Z(1)
PlayerY#=Get Ground Height(6,PlayerX#,PlayerZ#)
Position object 1,PlayerX#,PlayerY#,PlayerZ#
make object cylinder 99,50
make mesh from object 1,99
delete object 99
add limb 1,1,1
offset limb 1,1,0,25,0
scale limb 1,1,100,1,100
texture limb 1,1,99