Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 172 additions & 0 deletions extensions/community/ObjectLifetime.json
Original file line number Diff line number Diff line change
@@ -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": []
}