Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom story autosave points?
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#1
Custom story autosave points?

How can I make it so that the game just saves automatically as you go through it?

Voice Actor - Male, British Accent, Mid-teens, Adaptable
Custom Stories - "The Heist: Amnesia" (In production)
08-02-2012, 03:13 PM
Find
Lizard Offline
Member

Posts: 174
Threads: 23
Joined: Jul 2012
Reputation: 5
#2
RE: Custom story autosave points?

(08-02-2012, 03:13 PM)HeadyBoy Wrote: How can I make it so that the game just saves automatically as you go through it?
guess you can use this function when you collide with an area or something like that

AutoSave();

CURRENT PROJECT:
A Fathers Secret == Just started
08-02-2012, 03:18 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#3
RE: Custom story autosave points?

Put the Autosave function Zereb0 posted under "void OnEnter()". That's the most common way to auto save.

I rate it 3 memes.
08-02-2012, 03:19 PM
Find
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#4
RE: Custom story autosave points?

So this would make it so that it's a kinda like.. Checkpoint, in case the player dies?

Voice Actor - Male, British Accent, Mid-teens, Adaptable
Custom Stories - "The Heist: Amnesia" (In production)
08-02-2012, 03:41 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#5
RE: Custom story autosave points?

No; checkpoints make checkpoints when the player dies xD
Here's the function for that:

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);


Use this function whenever you spawn a monster, or when the player enters an area where he can die from environmental reasons.

Hope that helped.

I rate it 3 memes.
08-02-2012, 03:54 PM
Find
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#6
RE: Custom story autosave points?

Tried doing this, it works, but instead of taking me to the time period BEFORE I unlocked a door, walked in, and spawned a monster, the door had already been opened and the monster was not there. As if it just teleported the player.


What have I done wrong? D:

Voice Actor - Male, British Accent, Mid-teens, Adaptable
Custom Stories - "The Heist: Amnesia" (In production)
08-02-2012, 04:22 PM
Find
ApeCake Offline
Member

Posts: 116
Threads: 20
Joined: Jun 2012
Reputation: 4
#7
RE: Custom story autosave points?

(08-02-2012, 04:22 PM)HeadyBoy Wrote: Tried doing this, it works, but instead of taking me to the time period BEFORE I unlocked a door, walked in, and spawned a monster, the door had already been opened and the monster was not there. As if it just teleported the player.


What have I done wrong? D:
You mean - after you died? Monsters always despawn when you die. You have to find a way to reset the whole process if you want the player to do the same thing again after he died.
08-02-2012, 04:35 PM
Find
HeadyBoy Offline
Junior Member

Posts: 45
Threads: 16
Joined: Jul 2012
Reputation: 0
#8
RE: Custom story autosave points?

Solved now. Thanks for your help.

Voice Actor - Male, British Accent, Mid-teens, Adaptable
Custom Stories - "The Heist: Amnesia" (In production)
(This post was last modified: 08-02-2012, 05:05 PM by HeadyBoy.)
08-02-2012, 04:54 PM
Find




Users browsing this thread: 3 Guest(s)