TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Save scene
Pages:
1
Save scene
colburt187
Posts: 2416
July 15, 2013, 11:43:29 am
Hi,
I'm looking for some help on saving and loading scenes. My game has around 15 levels, I would like the user to be able to get to a level like 7 or 8 and then be able to quit the game, when they come back they can hit continue and it will take them to the level they left on.
I got scene saving from stencyl forge but don't understand how to use it.
Thanks.
Photon
Posts: 2691
July 15, 2013, 12:06:00 pm
Without seeing the behavior, its hard to know what the problem is.
At any rate, you could save the current level in a Game Attribute. Then when the player hits continue, you can take them to the saved level.
http://photongamedev.wordpress.com/
Do
NOT
PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!
gamegirlxl
Posts: 713
July 15, 2013, 12:07:12 pm
I think you can store a list as a game attribute. So, adding a scene (add scenename to list) to a list and saving it will work. Before adding something to that list, empty it. Also, make the default value of the list your first level.
Save data may become corrupt if you change the scene names though...
SpookyBurger
Posts: 82
July 15, 2013, 01:40:37 pm
What I did for my save/load behavior was keep track of scene name using the "Scene Name" block, worked like a charm for me.
Please try out my latest build of Patient 9 here.
http://www.stencyl.com/game/play/23179
colburt187
Posts: 2416
July 15, 2013, 01:48:17 pm
Thanks for the help everyone,
I went with the game attributes, it's working nicely.
Pages:
1