New extension: Save and Load Object made by God-Sonic#1569
Open
github-actions[bot] wants to merge 1 commit into
Open
New extension: Save and Load Object made by God-Sonic#1569github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
Contributor
|
lowkey, just do sum javascript and save literally everything. so you save the object json |
|
It saves a json of a object with it variables |
Contributor
|
It does not. |
|
It does but it only works when you name the objects variable name by " Variables" that only way it will work |
Contributor
|
that's why i'm saying you should do some javascript to save the entire object, then it will also work on custom objects |
|
I need to learn JavaScript in order to do that which I don't have the time for at this moment but maybe in the future. |
Contributor
|
pretty sure you can just do: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
It save and load object's variables, zorder, angles, and position. It can save and load multiple objects at a time.
How to use the extension
You need the object you want to save with the save behavior and the loader object with the loader behavior. In the event, there are two action . One is for save the object in the scene every 0.1 to 1 seconds that is save to storage. The other one load the object from storage in the scene.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
Game.zip
Extension file
LoadandSave.zip