View Single Post
  #2  
Old 08-12-2011, 08:10 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote