Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Automatic Save Game Checkpoints #444622
08/15/14 12:06
08/15/14 12:06
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
Is there any example for automatic save game checkpoints ? Please share sample codes. thanks

Re: Automatic Save Game Checkpoints [Re: gamers] #444623
08/15/14 12:54
08/15/14 12:54
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
So what do you want exactly? Having the checkpoints like in mario (walking through them), want them to save periodically (every 5 minutes or so) or having "story based" checkpoints that safe after a given event?


Visit my site: www.masterq32.de
Re: Automatic Save Game Checkpoints [Re: MasterQ32] #444625
08/15/14 14:38
08/15/14 14:38
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
I want an example like mario, player grabs a checkpoint model and automatically saves the game

Re: Automatic Save Game Checkpoints [Re: gamers] #444626
08/15/14 14:51
08/15/14 14:51
Joined: Jun 2010
Posts: 71
L
LawnmowerMan Offline
Junior Member
LawnmowerMan  Offline
Junior Member
L

Joined: Jun 2010
Posts: 71
Here is simple code, but better check manual for more info about game_save
Code:
action check_point()
{
	set(my,PASSABLE);
	while(1)
	{
		if(vec_dist(my.x,player.x) < 100)
		{
			game_save("savegame",0,SV_ALL);
			ent_remove(me);
			return;	
		}
		wait(1);
	}
}


Re: Automatic Save Game Checkpoints [Re: LawnmowerMan] #444627
08/15/14 15:57
08/15/14 15:57
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Just save the current level variable and some data like life, ammo and so on...
Dont save the crap you dont need. I would recommend to write your own save game functions/files its more stable then the engine save/load things..


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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