Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/26/26 12:17
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Grant, 1 invisible), 5,590 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
(physX) saving game... #395466
02/23/12 18:50
02/23/12 18:50
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
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...

Last edited by Random; 02/23/12 18:50.


Re: (physX) saving game... [Re: Random] #395535
02/24/12 14:21
02/24/12 14:21
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
I am sure that everybody will have the same problem if the use physX. (or had)
So how did you guys soulve it?



Re: (physX) saving game... [Re: Random] #395544
02/24/12 15:46
02/24/12 15:46
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
I've not had that problem so far, but I'm really interested in a solution, too!

Re: (physX) saving game... [Re: PadMalcom] #395574
02/24/12 19:01
02/24/12 19:01
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
See, that is really a pain...




Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1