Hi Bylkki ..
i don't know exactly whay your code doesn't work . ?
but i think maybe there are a small mistake .
You can TRY :
1- Add "ExtractFilePath(ParamStr(0))" to your Path , to be shore that you are working in the curint path ..
Like this :
GLScene1.LoadFromFile(ExtractFilePath(ParamStr(0)+ '\Levels\Level1.Gls');
2- you must reDefine some Parameters after calling ..:. (( GLNavigators for example)) :
Like This :
GLNavigator1.MovingObject:=actor;
my be there are some other things ......
but at any rate this is a code i wrote .. and it is working correctly :
if IsKeyDown('s') then begin
GLScene1.LoadFromFile(ExtractFilePath(ParamStr(0)) +'\Levels\Level1.Gls');
GLNavigator1.MovingObject:=actor;
GLNavigator2.MovingObject:=Actorvert;
end;
God Luck.
.
Bookmarks