Help with save/load

I am trying to create a save and load function with Q and L and have an auto save with a timer but my L does not work and when i press q it sets the players position to cords 0, 0. Here is what i have so far:

All of the ‘cloud’ behaviors are set to the same name.

What do i need to do for this to work?

1 Like

Have the name set for each one, and have it set the name according to the player. Add the text together like; ‘Overma Games Save 1’

so i need to have a name for each cloud?

Well, now that I think of it…
You should use the ‘save’ behavior instead. Clouds are much harder to use, and more complicated.

Or you can use this bundle I made;

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":1,"name":"Change Name","behaviorType":"logic.NodeGroup","x":-90,"y":-32,"group":"","id":"f6637a86c1c7714d","isMenuItem":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":-48,"group":"f6639cce76281f42","id":"f663c21b02563b42","portId":"f6639cce76281f42i0","tag":"Name","dataType":1},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":360,"y":-80,"group":"f6639cce76281f42","id":"f663dea4f37bc34c","startVal":""},{"inputCount":1,"outputCount":2,"name":"User Info","behaviorType":"logic.gameflow.UserInfo","x":180,"y":80,"group":"f6639cce76281f42","id":"f6641e1f75016449"},{"inputCount":1,"outputCount":1,"name":"To Number","behaviorType":"logic.data.ToNumber","x":0,"y":96,"group":"f6639cce76281f42","id":"f66478ee28ebb844"},{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":0,"y":-256,"group":"f6639cce76281f42","id":"f665cf4492c2064c","resetOnLevelStart":false},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":180,"y":-272,"group":"f6639cce76281f42","id":"f665e5cf614c5647","portId":"f6639cce76281f42o0","tag":"Get","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":-80,"group":"f6639cce76281f42","id":"f66627db73a98f4f","portId":"f6639cce76281f42o1","tag":"Out","dataType":1},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":180,"y":-80,"group":"f6639cce76281f42","id":"f667923636bcdd49","startVal":""},{"delay":1,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":0,"y":-16,"group":"f6639cce76281f42","id":"f667b879618f7141"},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":360,"y":80,"group":"f6639cce76281f42","id":"f6686a1ef3c38048","startVal":"'s "},{"inputCount":1,"outputCount":2,"name":"Name","behaviorType":"logic.NodeGroup","x":-270,"y":64,"group":"f6637a86c1c7714d","id":"f6639cce76281f42","isMenuItem":false},{"inputCount":5,"outputCount":2,"name":"Text","behaviorType":"logic.data.TextBlock","x":-270,"y":-80,"group":"f6637a86c1c7714d","id":"f66497a46c10964e","notes":"Add Cloud Name Here","startVal":"Save"},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":-90,"y":80,"group":"f6637a86c1c7714d","id":"f666464ad434cd4f","portId":"f6637a86c1c7714do0","tag":"Name","dataType":1}],"links":[{"input_id":"f667923636bcdd49i0","output_id":"f663c21b02563b42o0"},{"input_id":"f66478ee28ebb844i0","output_id":"f663c21b02563b42o0"},{"input_id":"f66627db73a98f4fi0","output_id":"f663dea4f37bc34co0"},{"input_id":"f663dea4f37bc34ci0","output_id":"f6641e1f75016449o1"},{"input_id":"f6686a1ef3c38048i1","output_id":"f6641e1f75016449o1"},{"input_id":"f667b879618f7141i0","output_id":"f66478ee28ebb844o0"},{"input_id":"f6641e1f75016449i0","output_id":"f66478ee28ebb844o0"},{"input_id":"f665e5cf614c5647i0","output_id":"f665cf4492c2064co0"},{"input_id":"f663dea4f37bc34ci3","output_id":"f667923636bcdd49o0"},{"input_id":"f667923636bcdd49i1","output_id":"f667b879618f7141o0"},{"input_id":"f663dea4f37bc34ci3","output_id":"f6686a1ef3c38048o0"},{"input_id":"f66497a46c10964ei1","output_id":"f6639cce76281f42o0"},{"input_id":"f666464ad434cd4fi0","output_id":"f6639cce76281f42o1"},{"input_id":"f6639cce76281f42i0","output_id":"f66497a46c10964eo0"}]}}}
1 Like

This bundle automatically makes a specific username according to who is playing it. For example, if you set the text to, Save 1; the system is going to turn the name into “Overma Games’s Save 1”

1 Like

ok thank you for the tip.

1 Like

does this load the game 2?

You’re setting the Position behavior to (1,1), you need an Extractor to get the X/Y of the player. And the Cloud behavior is entirely unneeded, do not use it.
Also it seems like things are just needlessly complicated. It’s a pretty simple thing.

Save player position when you press Q, load player position when you place L.
And again, please do not use cloud for this, it’s entirely unneeded and will likely just cause you issues

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":0,"outputCount":0,"name":"Save/Read Position","behaviorType":"logic.NodeGroup","x":-90,"y":-16,"group":"88ba297f51870144","id":"f6b64f1910c4254d","isMenuItem":false},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":-450,"y":-240,"group":"f6b64f1910c4254d","id":"f6b688494fd61f46","notes":"Saves Position","n_o":1,"keyCode":81},{"inputCount":0,"outputCount":2,"name":"Keyboard","behaviorType":"logic.triggers.Keyboard","x":90,"y":-144,"group":"f6b64f1910c4254d","id":"f6b688b48aa55445","notes":"Loads Position","n_o":1,"keyCode":76},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":-270,"y":-240,"group":"f6b64f1910c4254d","id":"f6b6ad7ab7967349","targetId":0,"prop":"x","version":2},{"inputCount":1,"outputCount":1,"name":"Extractor","behaviorType":"logic.properties.Extractor","x":-270,"y":-144,"group":"f6b64f1910c4254d","id":"f6b6addde799e847","targetId":0,"prop":"y","version":2},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":-90,"y":-240,"group":"f6b64f1910c4254d","id":"f6b6e8c0eb25af43","storageKey":"Player X","dataType":2},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":-90,"y":-144,"group":"f6b64f1910c4254d","id":"f6b6e926966e8747","storageKey":"Player Y","dataType":2},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":-90,"y":-240,"group":"f6b64f1910c4254d","id":"f6b7246979487741","storageKey":"Player X","dataType":2},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":270,"y":-240,"group":"f6b64f1910c4254d","id":"f6b74cbfdd290947","storageKey":"Player X","dataType":2},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":270,"y":-144,"group":"f6b64f1910c4254d","id":"f6b74cbf456e054a","storageKey":"Player Y","dataType":2},{"inputCount":4,"outputCount":2,"name":"Position","behaviorType":"logic.properties.Position","x":450,"y":-240,"group":"f6b64f1910c4254d","id":"f6b77cf2be234542","pixelUnits":true,"resetVelocity":false},{"delay":100,"count":1,"version":2,"inputCount":3,"outputCount":1,"name":"Timer","behaviorType":"logic.triggers.Timer","x":-450,"y":-96,"group":"f6b64f1910c4254d","id":"f6b795ddb58e564f","notes":"However long you want","n_o":1},{"inputCount":2,"outputCount":2,"name":"LoadLevel","behaviorType":"logic.gameflow.NextLevel","x":-270,"y":-48,"group":"f6b64f1910c4254d","id":"f6b8884cd0735848","levelId":0},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":-90,"y":-48,"group":"f6b64f1910c4254d","id":"f6b88d1dd78fa34f","storageKey":"Level","dataType":2},{"inputCount":2,"outputCount":1,"name":"Save Number","behaviorType":"logic.logic.Storage","x":270,"y":-48,"group":"f6b64f1910c4254d","id":"f6b88e2040561047","storageKey":"Level","dataType":2},{"inputCount":2,"outputCount":2,"name":"LoadLevel","behaviorType":"logic.gameflow.NextLevel","x":450,"y":-48,"group":"f6b64f1910c4254d","id":"f6b8941eb4b9034d","levelId":-4}],"links":[{"input_id":"f6b6ad7ab7967349i0","output_id":"f6b688494fd61f46o0"},{"input_id":"f6b6addde799e847i0","output_id":"f6b688494fd61f46o0"},{"input_id":"f6b8884cd0735848i1","output_id":"f6b688494fd61f46o0"},{"input_id":"f6b74cbfdd290947i1","output_id":"f6b688b48aa55445o0"},{"input_id":"f6b74cbf456e054ai1","output_id":"f6b688b48aa55445o0"},{"input_id":"f6b88e2040561047i1","output_id":"f6b688b48aa55445o0"},{"input_id":"f6b6e8c0eb25af43i0","output_id":"f6b6ad7ab7967349o0"},{"input_id":"f6b6e926966e8747i0","output_id":"f6b6addde799e847o0"},{"input_id":"f6b77cf2be234542i0","output_id":"f6b74cbfdd290947o0"},{"input_id":"f6b77cf2be234542i1","output_id":"f6b74cbf456e054ao0"},{"input_id":"f6b6ad7ab7967349i0","output_id":"f6b795ddb58e564fo0"},{"input_id":"f6b6addde799e847i0","output_id":"f6b795ddb58e564fo0"},{"input_id":"f6b8884cd0735848i1","output_id":"f6b795ddb58e564fo0"},{"input_id":"f6b88d1dd78fa34fi1","output_id":"f6b8884cd0735848o1"},{"input_id":"f6b8941eb4b9034di0","output_id":"f6b88e2040561047o0"}]}}}

No idea why things were getting overcomplicated, this is all you need.

thank you im new to saving in flowlab, as you can see

1 Like