Is it possible to have an entity located within a type ( such as the main environment?) What is boggling me is that the code using types doesnt allow my player to move yet the non-type world environment works fine. Player movement is ok with this code:
And this code DOES NOT work... What is happening is the player is getting stuck in the center of the world. My movement controls will not work when I change the variable world to a type.
;world world = LoadMesh ("level1\world_stonehenge.b3d") If world <> 0 ScaleEntity world,1,1,1 PositionEntity world,0,0,0 RotateEntity world,0,0,0 EntityType world ,TYPE_WORLD Else RuntimeError "Could not load world!" End If
And this code DOES NOT work... What is happening is the player is getting stuck in the center of the world. My movement controls will not work when I change the variable world to a type.
;world world.world = New world world\ent = LoadMesh ("level1\world_stonehenge.b3d") If world\ent<> 0 ScaleEntity world\ent,1,1,1 PositionEntity world\ent,0,0,0 RotateEntity world\ent,0,0,0 EntityType world\ent, TYPE_WORLD Else RuntimeError "Could not load world!" End If