HeadyBoy
Junior Member
Posts: 45
Threads: 16
Joined: Jul 2012
Reputation:
0
|
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 |
|
Lizard
Member
Posts: 174
Threads: 23
Joined: Jul 2012
Reputation:
5
|
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 |
|
Adny
Posting Freak
Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation:
173
|
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 |
|
HeadyBoy
Junior Member
Posts: 45
Threads: 16
Joined: Jul 2012
Reputation:
0
|
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 |
|
Adny
Posting Freak
Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation:
173
|
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 |
|
HeadyBoy
Junior Member
Posts: 45
Threads: 16
Joined: Jul 2012
Reputation:
0
|
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 |
|
ApeCake
Member
Posts: 116
Threads: 20
Joined: Jun 2012
Reputation:
4
|
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 |
|
HeadyBoy
Junior Member
Posts: 45
Threads: 16
Joined: Jul 2012
Reputation:
0
|
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 |
|
|