From 6008ea949b36fbf2e5d30adc5a334dfa56bda35e Mon Sep 17 00:00:00 2001 From: Shlorpo Date: Thu, 8 May 2025 22:38:44 +0000 Subject: [PATCH] Automated Extension submission for issue #1674 --- extensions/community/ObjectLifetime.json | 172 +++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 extensions/community/ObjectLifetime.json diff --git a/extensions/community/ObjectLifetime.json b/extensions/community/ObjectLifetime.json new file mode 100644 index 000000000..5c9e050bb --- /dev/null +++ b/extensions/community/ObjectLifetime.json @@ -0,0 +1,172 @@ +{ + "author": "", + "category": "Game mechanic", + "extensionNamespace": "", + "fullName": "Object Lifetime", + "gdevelopVersion": "", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWNhbWVyYS10aW1lciIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik00Ljk0LDYuMzVDNC41NSw1Ljk2IDQuNTUsNS4zMiA0Ljk0LDQuOTNDNS4zMyw0LjU0IDUuOTYsNC41NCA2LjM1LDQuOTNMMTMuMDcsMTAuMzFMMTMuNDIsMTAuNTlDMTQuMiwxMS4zNyAxNC4yLDEyLjY0IDEzLjQyLDEzLjQyQzEyLjY0LDE0LjIgMTEuMzcsMTQuMiAxMC41OSwxMy40MkwxMC4zMSwxMy4wN0w0Ljk0LDYuMzVNMTIsMjBBOCw4IDAgMCwwIDIwLDEyQzIwLDkuNzkgMTkuMSw3Ljc5IDE3LjY2LDYuMzRMMTkuMDcsNC45M0MyMC44OCw2Ljc0IDIyLDkuMjQgMjIsMTJBMTAsMTAgMCAwLDEgMTIsMjJBMTAsMTAgMCAwLDEgMiwxMkg0QTgsOCAwIDAsMCAxMiwyME0xMiwxQTIsMiAwIDAsMSAxNCwzQTIsMiAwIDAsMSAxMiw1QTIsMiAwIDAsMSAxMCwzQTIsMiAwIDAsMSAxMiwxWiIgLz48L3N2Zz4=", + "name": "ObjectLifetime", + "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/ff6df4320dcf98b48aed5bb5331be2ccbc5975f3710d870fbc4f9739e3e39834_camera-timer.svg", + "shortDescription": "Set an object's lifetime.", + "version": "1.0.0", + "description": [ + "Set an object's lifetime", + "Delete an object after a set amount of time.", + "OR", + "Make an object hide after a set amount of time and reappear after a set amount of time." + ], + "tags": [], + "authorIds": [ + "d9YrrNymDtZA2Xa2iwjd0dYxlq73" + ], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [], + "eventsFunctions": [ + { + "description": "Set object lifetime.", + "fullName": "Set object lifetime (Delete)", + "functionType": "Action", + "name": "ObjectLifetimeDELETE", + "sentence": "Delete _PARAM1_ after _PARAM2_ seconds", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AjoutObjConcern" + }, + "parameters": [ + "", + "PARAM1" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Wait" + }, + "parameters": [ + "PARAM2" + ] + }, + { + "type": { + "value": "Delete" + }, + "parameters": [ + "PARAM1", + "" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "PARAM1", + "type": "objectList" + }, + { + "description": "Seconds", + "name": "PARAM2", + "type": "expression" + } + ], + "objectGroups": [] + }, + { + "description": "Set object lifetime.", + "fullName": "Set object lifetime (Hide)", + "functionType": "Action", + "name": "ObjectLifetimeHIDE", + "sentence": "Hide _PARAM1_ for _PARAM2_ seconds and reappear after _PARAM3_ seconds", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "AjoutObjConcern" + }, + "parameters": [ + "", + "PARAM1" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::Once" + }, + "parameters": [] + } + ], + "actions": [ + { + "type": { + "value": "Wait" + }, + "parameters": [ + "PARAM2" + ] + }, + { + "type": { + "value": "Cache" + }, + "parameters": [ + "PARAM1" + ] + }, + { + "type": { + "value": "Wait" + }, + "parameters": [ + "PARAM3" + ] + }, + { + "type": { + "value": "Montre" + }, + "parameters": [ + "PARAM1" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "PARAM1", + "type": "objectList" + }, + { + "description": "Hide Time (Seconds)", + "name": "PARAM2", + "type": "expression" + }, + { + "description": "Reappear Time (Seconds)", + "name": "PARAM3", + "type": "expression" + } + ], + "objectGroups": [] + } + ], + "eventsBasedBehaviors": [], + "eventsBasedObjects": [] +} \ No newline at end of file