Jump to content

DanielW

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by DanielW

  1. k have found the Problem GetChild should start at 1 not at 0. thanks for the help ^^
  2. its still dont working when i delete GetChild elverything Loads but with it it starts Loading elveryting and then quits whitout any message or error. didnt know of the gamelib in the assetstore will give it a look thanks edit: in my scene i have only the Terrain an Atmosphere and light do i need there something more ?
  3. Ok have tryed this: TTerrain terrain; TEntity scene=LoadScene("scene/scene1.sbx"); int i; for(i=0;i<CountChildren(scene);i++) { TEntity e = GetChild(scene,i); str cl = GetEntityKey(e,"class"); if(cl=="Terrain") { terrain = e; SetEntityKey(e,"status","handled"); } } when i try to debug its still quits while its loading
  4. when i use GetChild(scene,0) my game quits and FindChild(scene,"terrain") is not finding anything
  5. Hi Can anyone explain me how i can get the Terrain Entity out of my Scene in C++ ? Regards Daniel
×
×
  • Create New...