Need some help on something

Hey people I need some help. When you clicks on another object how do I save the players postion so that the character, upon entering the game again will stay where it was when you were on it before you got off it.

Anyone who is reading this if you could make a example on this It will be a big help thank you :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1:

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:1,“name”:“Always”,“behaviorType”:“logic.triggers.Always”,“x”:-720,“y”:-256,“group”:"",“id”:“98411424662f9a40”},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:-270,“y”:-160,“group”:"",“id”:“984127332ee17c4d”,“targetId”:0,“prop”:“y”},{“inputCount”:1,“outputCount”:1,“name”:“Extractor”,“behaviorType”:“logic.properties.Extractor”,“x”:-270,“y”:-288,“group”:"",“id”:“9841280a371a1a4f”,“targetId”:0,“prop”:“x”},{“inputCount”:2,“outputCount”:1,“name”:“Save Number”,“behaviorType”:“logic.logic.Storage”,“x”:-90,“y”:-160,“group”:"",“id”:“9841542bed86384f”,“storageKey”:“Y”,“dataType”:2},{“inputCount”:2,“outputCount”:1,“name”:“Save Number”,“behaviorType”:“logic.logic.Storage”,“x”:-90,“y”:-288,“group”:"",“id”:“984154ffa63c454d”,“storageKey”:“X”,“dataType”:2},{“inputCount”:0,“outputCount”:1,“name”:“Once”,“behaviorType”:“logic.triggers.Once”,“x”:-450,“y”:32,“group”:"",“id”:“984198f9aab64f4e”,“resetOnLevelStart”:false},{“inputCount”:2,“outputCount”:1,“name”:“Save Number”,“behaviorType”:“logic.logic.Storage”,“x”:-270,“y”:96,“group”:"",“id”:“9841adaf3752c043”,“storageKey”:“Y”,“dataType”:2},{“inputCount”:2,“outputCount”:1,“name”:“Save Number”,“behaviorType”:“logic.logic.Storage”,“x”:-270,“y”:-32,“group”:"",“id”:“9841adafe0fce74f”,“storageKey”:“X”,“dataType”:2},{“inputCount”:4,“outputCount”:2,“name”:“Position”,“behaviorType”:“logic.properties.Position”,“x”:-90,“y”:32,“group”:"",“id”:“9841d76783134547”,“pixelUnits”:true,“resetVelocity”:false},{“delay”:5,“count”:1,“version”:2,“inputCount”:3,“outputCount”:1,“name”:“Timer”,“behaviorType”:“logic.triggers.Timer”,“x”:-720,“y”:-352,“group”:"",“id”:“984457365c64c34f”},{“inputCount”:3,“outputCount”:1,“name”:“Switch”,“behaviorType”:“logic.logic.Switch”,“x”:-450,“y”:-224,“group”:"",“id”:“98446f90f93a514e”,"_startVal":0,“dataType”:2}],“links”:[{“input_id”:“98446f90f93a514ei2”,“output_id”:“98411424662f9a40o0”},{“input_id”:“984127332ee17c4di0”,“output_id”:“98446f90f93a514eo0”},{“input_id”:“9841542bed86384fi0”,“output_id”:“984127332ee17c4do0”},{“input_id”:“9841280a371a1a4fi0”,“output_id”:“98446f90f93a514eo0”},{“input_id”:“984154ffa63c454di0”,“output_id”:“9841280a371a1a4fo0”},{“input_id”:“9841542bed86384fi0”,“output_id”:“984127332ee17c4do0”},{“input_id”:“984154ffa63c454di0”,“output_id”:“9841280a371a1a4fo0”},{“input_id”:“9841adafe0fce74fi1”,“output_id”:“984198f9aab64f4eo0”},{“input_id”:“9841adaf3752c043i1”,“output_id”:“984198f9aab64f4eo0”},{“input_id”:“9841adaf3752c043i1”,“output_id”:“984198f9aab64f4eo0”},{“input_id”:“9841d76783134547i1”,“output_id”:“9841adaf3752c043o0”},{“input_id”:“9841adafe0fce74fi1”,“output_id”:“984198f9aab64f4eo0”},{“input_id”:“9841d76783134547i0”,“output_id”:“9841adafe0fce74fo0”},{“input_id”:“9841d76783134547i0”,“output_id”:“9841adafe0fce74fo0”},{“input_id”:“9841d76783134547i1”,“output_id”:“9841adaf3752c043o0”},{“input_id”:“98446f90f93a514ei1”,“output_id”:“984457365c64c34fo0”},{“input_id”:“98446f90f93a514ei1”,“output_id”:“984457365c64c34fo0”},{“input_id”:“9841280a371a1a4fi0”,“output_id”:“98446f90f93a514eo0”},{“input_id”:“984127332ee17c4di0”,“output_id”:“98446f90f93a514eo0”}]}}}

Just use the save behaviour.
Save each position separately.

1 Like

Just copy and paste that, but give me credit in the code or in game.

thank you and I will so thanks

Thank you Pixel_name again even though I said it just going to you know
2

4

1 Like

Hi, I know this is already solved, but it’s generally a good idea to check the Example Page.

It has a checkpoint example that you can use.

@Pixel_Name1 I am unable to import the code you showed, something most be incorrect in it.
Also, it’s generally best to show code like this

Code inside here

{“data”:{“behavior”:{“v”:“2”,“nodes”:[{“inputCount”:0,“outputCount”:1,“name”:“Always”,“behaviorType”:“logic.triggers.Always”,“x”:-720,“y”:-256,“group”:"",“id”:“98411424662f9a40”}

hm your right it doesn’t work, also I’m still new to forums :sweat_smile:

1 Like

I tried the checkpoint example and it works fine. very good example

1 Like