You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" obj.x + deltaX, obj.y + deltaY, \"easeInOutQuad\", time, false);",
108
+
" //fade",
109
+
" tween.addObjectOpacityTween(\"Opacity\", 0, \"easeInOutQuad\", time, false);",
110
+
"}",
111
+
""
112
+
],
113
+
"parameterObjects": "Object",
114
+
"useStrict": true,
115
+
"eventsSheetExpanded": true
116
+
},
117
+
{
118
+
"type": "BuiltinCommonInstructions::Comment",
119
+
"color": {
120
+
"b": 109,
121
+
"g": 230,
122
+
"r": 255,
123
+
"textB": 0,
124
+
"textG": 0,
125
+
"textR": 0
126
+
},
127
+
"comment": "Delete the coin After 1 Second (Max animation time)"
128
+
},
129
+
{
130
+
"type": "BuiltinCommonInstructions::Standard",
131
+
"conditions": [],
132
+
"actions": [
133
+
{
134
+
"type": {
135
+
"value": "Wait"
136
+
},
137
+
"parameters": [
138
+
"1"
139
+
]
140
+
},
141
+
{
142
+
"type": {
143
+
"value": "Delete"
144
+
},
145
+
"parameters": [
146
+
"Object",
147
+
""
148
+
]
149
+
}
150
+
]
151
+
}
152
+
],
153
+
"parameters": [
154
+
{
155
+
"description": "Object",
156
+
"name": "Object",
157
+
"type": "object"
158
+
},
159
+
{
160
+
"description": "Behavior",
161
+
"name": "Behavior",
162
+
"supplementaryInformation": "Coin::Coin",
163
+
"type": "behavior"
164
+
}
165
+
],
166
+
"objectGroups": []
167
+
},
168
+
{
169
+
"fullName": "",
170
+
"functionType": "Action",
171
+
"name": "onCreated",
172
+
"sentence": "",
173
+
"events": [
174
+
{
175
+
"type": "BuiltinCommonInstructions::Standard",
176
+
"conditions": [],
177
+
"actions": []
178
+
},
179
+
{
180
+
"type": "BuiltinCommonInstructions::JsCode",
181
+
"inlineCode": [
182
+
"if (gdjs._coinExtension)",
183
+
" return;",
184
+
"",
185
+
"//init Extension global parameters ",
186
+
"gdjs._coinExtension = ",
187
+
"{",
188
+
" coinPitchFactor: 1.0,",
189
+
" lastTime: Date.now()",
190
+
"}"
191
+
],
192
+
"parameterObjects": "",
193
+
"useStrict": true,
194
+
"eventsSheetExpanded": false
195
+
}
196
+
],
197
+
"parameters": [
198
+
{
199
+
"description": "Object",
200
+
"name": "Object",
201
+
"type": "object"
202
+
},
203
+
{
204
+
"description": "Behavior",
205
+
"name": "Behavior",
206
+
"supplementaryInformation": "Coin::Coin",
207
+
"type": "behavior"
208
+
}
209
+
],
210
+
"objectGroups": []
211
+
}
212
+
],
213
+
"propertyDescriptors": [
214
+
{
215
+
"value": "",
216
+
"type": "Resource",
217
+
"label": "Sound",
218
+
"description": "Sound that will be played once the coin is collected (Empty for no sound)",
219
+
"group": "Sound",
220
+
"extraInformation": [
221
+
"audio"
222
+
],
223
+
"name": "Sound"
224
+
},
225
+
{
226
+
"value": "0.5",
227
+
"type": "Number",
228
+
"unit": "Second",
229
+
"label": "Time",
230
+
"description": "Time in Seconds for the coin to be dissolved, use values between 0 - 1.0",
231
+
"group": "",
232
+
"extraInformation": [],
233
+
"advanced": true,
234
+
"name": "Time"
235
+
},
236
+
{
237
+
"value": "0",
238
+
"type": "Number",
239
+
"unit": "Pixel",
240
+
"label": "DeltaX",
241
+
"description": "Movement offset in X ",
242
+
"group": "",
243
+
"extraInformation": [],
244
+
"advanced": true,
245
+
"name": "DeltaX"
246
+
},
247
+
{
248
+
"value": "-20",
249
+
"type": "Number",
250
+
"unit": "Pixel",
251
+
"label": "DeltaY",
252
+
"description": "Movement offset in Y",
253
+
"group": "",
254
+
"extraInformation": [],
255
+
"advanced": true,
256
+
"name": "DeltaY"
257
+
},
258
+
{
259
+
"value": "80",
260
+
"type": "Number",
261
+
"label": "Sound Volume",
262
+
"description": "Set the volume of the attached sound",
263
+
"group": "Sound",
264
+
"extraInformation": [],
265
+
"advanced": true,
266
+
"name": "Volume"
267
+
},
268
+
{
269
+
"value": "0.05",
270
+
"type": "Number",
271
+
"label": "Delta Pitch",
272
+
"description": "Change in pitch every time an object is collected",
273
+
"group": "Sound",
274
+
"extraInformation": [],
275
+
"advanced": true,
276
+
"name": "DeltaPitch"
277
+
},
278
+
{
279
+
"value": "0.3",
280
+
"type": "Number",
281
+
"unit": "Second",
282
+
"label": "Pitch Reset Time",
283
+
"description": "Time need to elapsed without picking an object ,to reset the Pitch back to default",
284
+
"group": "Sound",
285
+
"extraInformation": [],
286
+
"advanced": true,
287
+
"name": "PitchRestTime"
288
+
}
289
+
],
290
+
"sharedPropertyDescriptors": []
291
+
}
292
+
],
293
+
"eventsBasedObjects": [
294
+
{
295
+
"areaMaxX": 64,
296
+
"areaMaxY": 64,
297
+
"areaMaxZ": 64,
298
+
"areaMinX": 0,
299
+
"areaMinY": 0,
300
+
"areaMinZ": 0,
301
+
"defaultName": "",
302
+
"description": "Dummy object to make sure Engine will keep the Tween Behavior.\nOtherwise, the javascript code cannot create a Tween object dynamically by code.",
0 commit comments