Skip to content

Commit 77d0b19

Browse files
committed
Automated Extension submission for issue #1887
1 parent 41ad4f3 commit 77d0b19

File tree

1 file changed

+307
-0
lines changed

1 file changed

+307
-0
lines changed
Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
{
2+
"author": "",
3+
"category": "Game mechanic",
4+
"extensionNamespace": "",
5+
"fullName": "SAVENLOAD",
6+
"gdevelopVersion": "",
7+
"helpPath": "",
8+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWNvbnRlbnQtc2F2ZS1hbGwiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTcsN1YzSDdWN0gxN00xNCwxN0EzLDMgMCAwLDAgMTcsMTRBMywzIDAgMCwwIDE0LDExQTMsMyAwIDAsMCAxMSwxNEEzLDMgMCAwLDAgMTQsMTdNMTksMUwyMyw1VjE3QTIsMiAwIDAsMSAyMSwxOUg3QzUuODksMTkgNSwxOC4xIDUsMTdWM0EyLDIgMCAwLDEgNywxSDE5TTEsN0gzVjIxSDE3VjIzSDNBMiwyIDAgMCwxIDEsMjFWN1oiIC8+PC9zdmc+",
9+
"name": "SAVENLOAD",
10+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/43eeb621e73fe65c4653e2504b7cf201120c78c63b450c8be24347aad409fc60_content-save-all.svg",
11+
"shortDescription": "Saving and loading is now 5x easier with this extension (only works for saving an objects behavior).\n\n\nI WILL BE MAKING SAVE AND LOAD FOR VARIABLES (AND MAYBE SLIDERS) SOON. ",
12+
"version": "1.0.0",
13+
"description": "SAVING AND LOADING AN OBJECT'S POSITION GREAT FOR ADDING A SAVE N' LOAD SYSTEM TO YOUR GAME.",
14+
"tags": [
15+
"save",
16+
"load",
17+
"game mechanic"
18+
],
19+
"authorIds": [
20+
"5ppw2lKgwrM6YND0J3wy72OkMg02"
21+
],
22+
"dependencies": [],
23+
"globalVariables": [],
24+
"sceneVariables": [
25+
{
26+
"name": "PLAYERSPOSITIONX",
27+
"type": "number",
28+
"value": 0
29+
},
30+
{
31+
"name": "PLAYERSPOSITIONY",
32+
"type": "number",
33+
"value": 0
34+
}
35+
],
36+
"eventsFunctions": [
37+
{
38+
"description": "Saves the object's position.",
39+
"fullName": "Save object's position",
40+
"functionType": "Action",
41+
"name": "SAVE",
42+
"sentence": "Save_PARAM1_position",
43+
"events": [
44+
{
45+
"type": "BuiltinCommonInstructions::Standard",
46+
"conditions": [],
47+
"actions": [
48+
{
49+
"type": {
50+
"value": "EcrireFichierExp"
51+
},
52+
"parameters": [
53+
"\"PLAYERSPOSITION\"",
54+
"\"X\"",
55+
"PLAYERSPOSITIONX"
56+
]
57+
},
58+
{
59+
"type": {
60+
"value": "EcrireFichierExp"
61+
},
62+
"parameters": [
63+
"\"PLAYERSPOSITION\"",
64+
"\"Y\"",
65+
"PLAYERSPOSITIONY"
66+
]
67+
}
68+
]
69+
}
70+
],
71+
"parameters": [
72+
{
73+
"description": "Object that is going to be saved",
74+
"name": "Object_that_is_going_to_be_saved",
75+
"type": "objectList"
76+
}
77+
],
78+
"objectGroups": []
79+
},
80+
{
81+
"description": "Checks the object's position.",
82+
"fullName": "Check object's position",
83+
"functionType": "Action",
84+
"name": "PLAYERSPOSITION",
85+
"sentence": "_PARAM1_position",
86+
"events": [
87+
{
88+
"type": "BuiltinCommonInstructions::Standard",
89+
"conditions": [],
90+
"actions": [
91+
{
92+
"type": {
93+
"value": "SetNumberVariable"
94+
},
95+
"parameters": [
96+
"PLAYERSPOSITIONX",
97+
"=",
98+
"Object.X()"
99+
]
100+
},
101+
{
102+
"type": {
103+
"value": "SetNumberVariable"
104+
},
105+
"parameters": [
106+
"PLAYERSPOSITIONY",
107+
"=",
108+
"Object.Y()"
109+
]
110+
}
111+
]
112+
}
113+
],
114+
"parameters": [
115+
{
116+
"description": "Object",
117+
"name": "Object",
118+
"type": "objectList"
119+
}
120+
],
121+
"objectGroups": []
122+
},
123+
{
124+
"description": "(If there is a save) loads the objects position.",
125+
"fullName": "Load object's position",
126+
"functionType": "Action",
127+
"name": "LOAD",
128+
"sentence": "Load_PARAM1_position",
129+
"events": [
130+
{
131+
"type": "BuiltinCommonInstructions::Standard",
132+
"conditions": [],
133+
"actions": [
134+
{
135+
"type": {
136+
"value": "ReadNumberFromStorage"
137+
},
138+
"parameters": [
139+
"\"PLAYERSPOSITION\"",
140+
"\"X\"",
141+
"",
142+
"PLAYERSPOSITIONX"
143+
]
144+
},
145+
{
146+
"type": {
147+
"value": "ReadNumberFromStorage"
148+
},
149+
"parameters": [
150+
"\"PLAYERSPOSITION\"",
151+
"\"Y\"",
152+
"",
153+
"PLAYERSPOSITIONY"
154+
]
155+
},
156+
{
157+
"type": {
158+
"value": "Delete"
159+
},
160+
"parameters": [
161+
"Object_that_is_going_to_be_loaded",
162+
""
163+
]
164+
},
165+
{
166+
"type": {
167+
"value": "Create"
168+
},
169+
"parameters": [
170+
"",
171+
"Object_that_is_going_to_be_loaded",
172+
"PLAYERSPOSITIONX",
173+
"PLAYERSPOSITIONY",
174+
""
175+
]
176+
}
177+
]
178+
}
179+
],
180+
"parameters": [
181+
{
182+
"description": "Object that is going to be loaded",
183+
"name": "Object_that_is_going_to_be_loaded",
184+
"type": "objectList"
185+
}
186+
],
187+
"objectGroups": []
188+
},
189+
{
190+
"description": "Checks if the save doesn't exist.",
191+
"fullName": "Save Doesn't Exist",
192+
"functionType": "Condition",
193+
"name": "SAVEDOESNOTEXIST",
194+
"sentence": "Save_Doesn't_Exist",
195+
"events": [
196+
{
197+
"type": "BuiltinCommonInstructions::Standard",
198+
"conditions": [
199+
{
200+
"type": {
201+
"inverted": true,
202+
"value": "GroupExists"
203+
},
204+
"parameters": [
205+
"\"PLAYERSPOSITION\"",
206+
"\"X\""
207+
]
208+
},
209+
{
210+
"type": {
211+
"inverted": true,
212+
"value": "GroupExists"
213+
},
214+
"parameters": [
215+
"\"PLAYERSPOSITION\"",
216+
"\"Y\""
217+
]
218+
}
219+
],
220+
"actions": [
221+
{
222+
"type": {
223+
"value": "SetReturnBoolean"
224+
},
225+
"parameters": [
226+
"True"
227+
]
228+
}
229+
]
230+
}
231+
],
232+
"parameters": [],
233+
"objectGroups": []
234+
},
235+
{
236+
"description": "Checks if Save Exists.",
237+
"fullName": "Save Exists",
238+
"functionType": "Condition",
239+
"name": "SAVEDOESEXIST",
240+
"sentence": "Save_Exists",
241+
"events": [
242+
{
243+
"type": "BuiltinCommonInstructions::Standard",
244+
"conditions": [
245+
{
246+
"type": {
247+
"value": "GroupExists"
248+
},
249+
"parameters": [
250+
"\"PLAYERSPOSITION\"",
251+
"\"X\""
252+
]
253+
},
254+
{
255+
"type": {
256+
"value": "GroupExists"
257+
},
258+
"parameters": [
259+
"\"PLAYERSPOSITION\"",
260+
"\"Y\""
261+
]
262+
}
263+
],
264+
"actions": [
265+
{
266+
"type": {
267+
"value": "SetReturnBoolean"
268+
},
269+
"parameters": [
270+
"True"
271+
]
272+
}
273+
]
274+
}
275+
],
276+
"parameters": [],
277+
"objectGroups": []
278+
},
279+
{
280+
"description": "Resets the save.",
281+
"fullName": "Reset Save",
282+
"functionType": "Action",
283+
"name": "RESET",
284+
"sentence": "Reset_Save",
285+
"events": [
286+
{
287+
"type": "BuiltinCommonInstructions::Standard",
288+
"conditions": [],
289+
"actions": [
290+
{
291+
"type": {
292+
"value": "DeleteFichier"
293+
},
294+
"parameters": [
295+
"\"PLAYERSPOSITION\""
296+
]
297+
}
298+
]
299+
}
300+
],
301+
"parameters": [],
302+
"objectGroups": []
303+
}
304+
],
305+
"eventsBasedBehaviors": [],
306+
"eventsBasedObjects": []
307+
}

0 commit comments

Comments
 (0)