How do u create save function for instantated() stuff
Godot 4.7.2 stable, mobile
How do u make a save function that can save an instance u make, like i have a window where i intend to make it able to edit blocks and meshes on the players side, so i instinate that, add child, the. How do u get a save function the save the changes done in the actual instance, and save the instance that was created, in like a file or something. Like how many art apps can just save something uve made yea and put as a minni picture or thumbnail at the side of ur screen. Also , the instance is mainly nodes, idk if ur suppost to get it into code or Json or something to save it
Nope. The doc uses groups to identify the nodes that needs to be saved. Let’s say that the player made 5 blocks that has different sizes and positions. When you need to save them you loop though the scene to find the nodes with a group named ‘block’, after that you save the position,size and maybe color in a json so you can load it later.
Ohh right ok, and lets say, the player also makes custom blcoks, custom animatioms or what not, the loop actually saves it for u without having to do anything manually as a dev in editor (would be crazy impractical if u had too). And also, ild probs need a thing where it saved and the file pops up somewhere like a thumbnail or image in saved files scene, i havvent cheaked but idk if theres stuff that explains how to do that, too, anyways the doc says it assumes the persist items dont have a child or children of other persist objects, how do u load the root or adult nodes first them the child ones later?
Oh yeah, they r, i think i ment if the player like, edited some blocks or added animations to blocks or avatars, if it saves itself when the code loops thru the groups, i am new so idk, i get confused easily XD
Well, what im planninggg to do at least is to have a system where, u use a praiser, u type in what animation u want played on a particular charactter or item, then like, it plays or gets added to the avatar