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
→
List and block Load save file...
Pages:
1
List and block Load save file...
RulezTeam
Posts: 319
September 03, 2018, 02:04:19 am
Hi,
I've a strange problem with list. I have a list with 10 items in it; if I use this list (with get item block) I have no problem, but if I update this list, and I add a new item (now I have 11 items) and then if I use the block "Load save file..:" in the first scene, this block load the old list with 10 items, and the new items that I have add manually is gone.
Why ?
rob1221
Posts: 9473
September 03, 2018, 05:10:38 am
It's not like number attributes where if you add a new one it's still there even if you load previous data. Assuming you're trying to update a game and not delete old list values, you can check the lengh of the list and if it's 10, add the new default value in your first scene.
https://twitter.com/Rob1221dev
RulezTeam
Posts: 319
September 03, 2018, 06:31:02 am
yes rob,
I'm trying to update a game, and I would like to update the list without a use of the block "add.."
So I think the the only solution good for me is to create a new list and use it.
Thank you
Pages:
1