
08-12-2011, 08:10 PM
|
|
team canada
|
 |
Join Date: Jul 2004
Location: Canada
Posts: 5,200
|
|
|
When a level is inactive for 10 or so minutes the npc is wiped from memory then when a player enters the level everything is re-created again.
As long as this.savelocally = true; Your npc should be saving that value permanently. (On iOS: the furniture class does it, so unless you're making a door that doesn't join/inherit that you'll need to set it.)
So if you're setting this.unlocked to true in your onCreated function that's probably why it doesn't appear to be saving for you. |
|
|
|