Hallo, I finally added the possibility to level up and learn abilities in my game Tarrox. So I decided to add an quick save function.
The problem is, all my characters (AI, player, monster) are physX based...
This means, if I load a game, the physics won`t work...
Here is how my quick save function looks like know (red is the save function);
function test_main()
{
video_mode = 8;
video_depth = 32;
video_screen = 1;
fps_min = 30;
fps_max = 60;
physX_open();
pX_setgravity(vector(0,0,-20));
pX_setccd(1);
level_load(test_level);
leveln();
while(level_load)
{
if(key_1 == 1){game_save("test", 0, SV_ALL);}
if(key_2 == 1){game_load("test",0);}
wait(1);
}
wait(1);
}
Any ideas how I can activate physX after loading a saved game?
PS: I already tryed "physX_open();" in the load code...