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
392 changes: 392 additions & 0 deletions extensions/community/SlowMotion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,392 @@
{
"author": "",
"category": "General",
"dimension": "2D/3D",
"extensionNamespace": "",
"fullName": "SlowMotion",
"gdevelopVersion": "",
"helpPath": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNuYWlsIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTIwLjMxIDguMDNMMjEuMjQgNC45NUMyMS42NyA0Ljg1IDIyIDQuNDcgMjIgNEMyMiAzLjQ1IDIxLjU1IDMgMjEgM1MyMCAzLjQ1IDIwIDRDMjAgNC4yNiAyMC4xMSA0LjUgMjAuMjcgNC42OEwxOS41IDcuMjZMMTguNzMgNC42OEMxOC44OSA0LjUgMTkgNC4yNiAxOSA0QzE5IDMuNDUgMTguNTUgMyAxOCAzUzE3IDMuNDUgMTcgNEMxNyA0LjQ3IDE3LjMzIDQuODUgMTcuNzYgNC45NUwxOC42OSA4LjAzQzE3LjczIDguMTggMTcgOSAxNyAxMFYxMi4yNUMxNS42NSA5LjE2IDEyLjYzIDcgOS4xMSA3QzUuMTkgNyAyIDEwLjI2IDIgMTQuMjZDMiAxNi4xIDIuODIgMTcuNzUgNC4xIDE4Ljg1TDIuODggMTlDMi4zOCAxOS4wNiAyIDE5LjUgMiAyMEMyIDIwLjU1IDIuNDUgMjEgMyAyMUwxOS4xMiAyMUMyMC4xNiAyMSAyMSAyMC4xNiAyMSAxOS4xMlYxMS43MkMyMS42IDExLjM4IDIyIDEwLjc0IDIyIDEwQzIyIDkgMjEuMjcgOC4xOCAyMC4zMSA4LjAzTTE1LjYgMTcuNDFMMTIuMDcgMTcuODZDMTIuNSAxNy4xIDEyLjggMTYuMjEgMTIuOCAxNS4yNkMxMi44IDEyLjk0IDEwLjk1IDExLjA2IDguNjcgMTEuMDZDOC4xNCAxMS4wNiA3LjYyIDExLjE4IDcuMTQgMTEuNDFDNi42NSAxMS42NiA2LjQ0IDEyLjI2IDYuNjkgMTIuNzVDNi45MyAxMy4yNSA3LjUzIDEzLjQ1IDguMDMgMTMuMjFDOC4yMyAxMy4xMSA4LjQ1IDEzLjA2IDguNjcgMTMuMDZDOS44NSAxMy4wNiAxMC44IDE0LjA0IDEwLjggMTUuMjZDMTAuOCAxNi45MiA5LjUgMTguMjcgNy44OSAxOC4yN0M1Ljc1IDE4LjI3IDQgMTYuNDcgNCAxNC4yNkM0IDExLjM2IDYuMjkgOSA5LjExIDlDMTIuNzcgOSAxNS43NSAxMi4wNiAxNS43NSAxNS44MkMxNS43NSAxNi4zNiAxNS42OSAxNi44OSAxNS42IDE3LjQxWiIgLz48L3N2Zz4=",
"name": "SlowMotion",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/30831a4480b916f795b390b2ab65df37347d569a55ff7a607659c2d14354f3f7_snail.svg",
"shortDescription": "Control the speed of your game with slow motion, fast motion, freeze, and normal speed modes.",
"version": "1.0.0",
"description": [
"# Slow Motion Extension",
"",
"Control the speed of your GDevelop game with simple actions.",
"",
"* **Slow Motion** — Slow down the game for cinematic effects and gameplay mechanics.",
"* **Fast Motion** — Speed up the game for fast-forward effects.",
"* **Freeze** — Pause the game by setting the time scale to 0.",
"* **Normal Speed** — Restore the default time scale.",
"",
"Supports custom time scales for flexible gameplay and cinematic effects.",
""
],
"tags": [
"Time",
"Speed",
"Slow Motion",
"Pause",
"Gameplay"
],
"authorIds": [
"ThTNbO5CH2PFLjew5p0BhyRJtv72"
],
"dependencies": [],
"globalVariables": [],
"sceneVariables": [],
"eventsFunctions": [
{
"description": "Changes the scene speed. Slow = 0.5x speed, Normal = 1x speed, Fast = 2x speed.",
"fullName": "Set scene speed",
"functionType": "Action",
"name": "AASceneSpeed",
"sentence": "Set the scene speed to _PARAM1_",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
{
"type": {
"value": "ChangeTimeScale"
},
"parameters": [
"",
"variable"
]
}
]
}
],
"parameters": [
{
"description": "Scene speed",
"name": "variable",
"supplementaryInformation": "[\"0.5\",\"1\",\"2\"]",
"type": "numberWithChoices"
}
],
"objectGroups": []
},
{
"description": "Checks whether the scene is currently running at normal speed. The condition is true when the scene time scale is set to 1, meaning that no slow or fast effect is active.",
"fullName": "If normal speed is active",
"functionType": "Condition",
"name": "CASceneSpeed",
"sentence": "Normal speed is active",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "TimeScale"
},
"parameters": [
"",
"=",
"1"
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Activates slow mode and reduces the scene time scale, making the game run slower. The scene speed is reduced to create a slow-motion effect.",
"fullName": "Activate slow mode 🐌",
"functionType": "Action",
"name": "ACSlowMode",
"sentence": "Activate slow mode 🐌",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
{
"type": {
"value": "ChangeTimeScale"
},
"parameters": [
"",
"0.5"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Stops the current slow or fast mode and restores the scene time scale to 1, returning the game to its normal speed.",
"fullName": "Reset scene speed",
"functionType": "Action",
"name": "AEResetSpeed",
"sentence": "Reset the scene speed to normal",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
{
"type": {
"value": "ChangeTimeScale"
},
"parameters": [
"",
"1"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Activates fast mode and increases the scene time scale, making the game run faster. The scene speed is increased to create a fast-motion effect.",
"fullName": "Activate fast mode 🔥 ",
"functionType": "Action",
"name": "ADFastMode",
"sentence": "Activate fast mode 🔥",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
{
"type": {
"value": "ChangeTimeScale"
},
"parameters": [
"",
"2"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Checks whether slow mode is currently active. The condition is true when the scene is running at the slow speed.",
"fullName": "If slow mode is active",
"functionType": "Condition",
"name": "CCSlowMotion",
"sentence": "Slow mode is active",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "TimeScale"
},
"parameters": [
"",
"<",
"1"
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Checks whether fast mode is currently active. The condition is true when the scene is running at the fast speed.",
"fullName": "If fast mode is active",
"functionType": "Condition",
"name": "CDFastMode",
"sentence": "Fast mode is active",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "TimeScale"
},
"parameters": [
"",
">",
"1"
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Checks whether freeze mode is currently active. The condition is true when the scene time scale is set to 0 and the scene is completely frozen.",
"fullName": "If freeze mode is active",
"functionType": "Condition",
"name": "CBFreezeMode",
"sentence": "Freeze mode is active",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "TimeScale"
},
"parameters": [
"",
"=",
"0"
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [],
"objectGroups": []
},
{
"description": "Freezes the scene by setting its time scale to 0. This stops time-based gameplay and can be used to pause the game while keeping the event system available for interface, menus, and other interactions.",
"fullName": "Activate freeze mode 🥶",
"functionType": "Action",
"name": "ABFreezeMode",
"sentence": "Activate freeze mode 🥶",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Once"
},
"parameters": []
}
],
"actions": [
{
"type": {
"value": "ChangeTimeScale"
},
"parameters": [
"",
"0"
]
}
]
}
],
"parameters": [],
"objectGroups": []
}
],
"eventsFunctionsFolderStructure": {
"folderName": "__ROOT",
"children": [
{
"functionName": "CASceneSpeed"
},
{
"functionName": "CBFreezeMode"
},
{
"functionName": "CCSlowMotion"
},
{
"functionName": "CDFastMode"
},
{
"functionName": "AASceneSpeed"
},
{
"functionName": "ABFreezeMode"
},
{
"functionName": "ACSlowMode"
},
{
"functionName": "ADFastMode"
},
{
"functionName": "AEResetSpeed"
}
]
},
"eventsBasedBehaviors": [],
"eventsBasedObjects": []
}