Persistence between scenes
-
I'm making my first game, and am trying to develop a super-simple top-down RPG for practice. My question is:
Is there a way to have persistence between scenes? For example, preventing enemies from respawning and values resetting after moving into/out of a house that is a separate scene from the overworld.
-
@autumnsworld Yes! You are referring to the Modify Save File and Load from Save File behaviors. You can persist values in between plays using those behaviors.
Modify Save File: Select a key (location) to save a value. You can also use this behavior to delete a key.
Load from Save File: Select the key to load that value. If the key does not exist, it will output the default value.
Let me know if you need more information.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login