I have made a leval with my terrain generator with two terrains.
It has some sharp landscape and some rolling hills,
and it looks great, but the problem is that the player type
needs to be able to walk on both terrains but I can only get the player to walk on either one or the other. I need the playertype to treat both landscapes the same.
Any ideas?
I thought about loading both terrains into my terrain generator and turning it into one terrain but then I would have to errr, texture map the terrain and I dont know how to do that yet.
Any ideas?
Here is some code I tried but does not work without the main loop.
It has some sharp landscape and some rolling hills,
and it looks great, but the problem is that the player type
needs to be able to walk on both terrains but I can only get the player to walk on either one or the other. I need the playertype to treat both landscapes the same.
Any ideas?
I thought about loading both terrains into my terrain generator and turning it into one terrain but then I would have to errr, texture map the terrain and I dont know how to do that yet.
Any ideas?
Here is some code I tried but does not work without the main loop.
; Load terrain terrain=LoadTerrain( "myterrain4.b3d" ) terrain2=LoadTerrain( "lowhills.bmp" ) ;terrain=CreateTerrain(64) ; Scale terrain ScaleEntity terrain,1,20,1 ScaleEntity terrain2,4,20,4 PositionEntity terrain2,EntityX(terrain)-20,EntityY(terrain)-3,EntityZ(terrain) EntityType terrain,3 EntityType terrain2,4 ;EntityBox stingbox,EntityX(Sting3),EntityY(Sting3),EntityZ(Sting3),.5,3,.5 If KeyDown( 203 )=True Then x#=x#-0.5 If KeyDown( 205 )=True Then x#=x#+0.5 If KeyDown( 208 )=True Then y#=y#-0.5 If KeyDown( 200 )=True Then y#=y#+0.5 If KeyDown( 44 )=True Then z#=z#-0.5 If KeyDown( 30 )=True Then z#=z#+0.5 If KeyDown( 205 )=True Then TurnEntity camera,0,-4,0 If KeyDown( 203 )=True Then TurnEntity camera,0,4,0 If KeyDown( 208 )=True Then MoveEntity camera,0,0,-0.4 If KeyDown( 200 )=True Then MoveEntity camera,0,0,0.4 x#=EntityX(camera) y#=EntityY(camera) z#=EntityZ(camera) terra_y#=TerrainY(terrain,x#,y#,z#) terra_x#=TerrainX(terrain,x#,Y,Z#) terra_z#=TerrainZ(terrain,x#,Y,Z#) terra2_y#=TerrainY(terrain2,x#,y#,z#) terra2_x#=TerrainX(terrain2,x#,Y,Z#) terra2_z#=TerrainZ(terrain2,x#,Y,Z#) If Not EntityCollided(player,4) Then PositionEntity player,x#,terra_y#+2,z# EndIf If EntityCollided(player,4) And terra_y# < terra2_y Then PositionEntity player,x#,terra2_y#+4,z# ;PositionEntity player,EntityX(player),terra2_y#+2,EntityZ(player) EndIf