(physX) saving game...

Posted By: Random

(physX) saving game... - 02/23/12 18:50

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);

Quote:
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...
Posted By: Random

Re: (physX) saving game... - 02/24/12 14:21

I am sure that everybody will have the same problem if the use physX. (or had)
So how did you guys soulve it?
Posted By: PadMalcom

Re: (physX) saving game... - 02/24/12 15:46

I've not had that problem so far, but I'm really interested in a solution, too!
Posted By: Random

Re: (physX) saving game... - 02/24/12 19:01

See, that is really a pain...
© 2024 lite-C Forums