From f526d2233639942feb8ad3ad0d2faa78777a4ed8 Mon Sep 17 00:00:00 2001 From: VegeTato Date: Mon, 18 Nov 2024 08:19:43 +0000 Subject: [PATCH] Automated Extension submission for issue #1435 --- extensions/community/FlipGravity.json | 225 +++++--------------------- 1 file changed, 40 insertions(+), 185 deletions(-) diff --git a/extensions/community/FlipGravity.json b/extensions/community/FlipGravity.json index c569c297..c3b4f774 100644 --- a/extensions/community/FlipGravity.json +++ b/extensions/community/FlipGravity.json @@ -1,7 +1,6 @@ { "author": "", "category": "Movement", - "description": "- Easily make VVVV games.\n- Easily Flip platformer character gravity upside down.\n- Set the flip gravity key.\n- Set the jump while flipped key.\n- Set the action to reset the gravity back to normal.\n- On/Off ability to jump while the gravity is flipped.\n- On/Off ability to flip the gravity while in air.\n- On/Off ability to trigger once the flip gravity key.\n- Control the flip gravity strength/force.\n- Control the jump strength/force while flipped.\n- Auto handle animations.\n- 2 actions included: \n 1. You have 1 object at the top and bottom. \n 2. You have 2 objects, one at the bottom (floor), one at the top (roof).\n\n*Note: this extension must run in every frame, so make sure to leave the event condition empty. \nRecommended: Set the platformer character sprite Origin and Center points to sprite center for the best experience.*", "extensionNamespace": "", "fullName": "Flip Gravity", "helpPath": "", @@ -9,7 +8,30 @@ "name": "FlipGravity", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Space/Space_earth_moon_orbit_sun.svg", "shortDescription": "Flip platformer character gravity up side down.", - "version": "2.1.1", + "version": "2.1.2", + "description": [ + "- Easily make VVVV games.", + "- Easily Flip platformer character gravity upside down.", + "- Set the flip gravity key.", + "- Set the jump while flipped key.", + "- Set the action to reset the gravity back to normal.", + "- On/Off ability to jump while the gravity is flipped.", + "- On/Off ability to flip the gravity while in air.", + "- On/Off ability to trigger once the flip gravity key.", + "- Control the flip gravity strength/force.", + "- Control the jump strength/force while flipped.", + "- Auto handle animations.", + "- 2 actions included: ", + " 1. You have 1 object at the top and bottom. ", + " 2. You have 2 objects, one at the bottom (floor), one at the top (roof).", + "", + "*Note: this extension must run in every frame, so make sure to leave the event condition empty. ", + "Recommended: Set the platformer character sprite Origin and Center points to sprite center for the best experience.*" + ], + "origin": { + "identifier": "FlipGravity", + "name": "gdevelop-extension-store" + }, "tags": [ "flip", "gravity" @@ -18,14 +40,14 @@ "IRIhkkTTl2UHhfjrLTTH5GYwkYu1" ], "dependencies": [], + "globalVariables": [], + "sceneVariables": [], "eventsFunctions": [ { "description": "Flip the gravity for platformer character (you have 2 objects), Examples:\n• Floor object at the bottom, Roof object at the top.\n• Floor object at the bottom, Floor object at the top.\n• Roof object at the bottom, Roof object at the top.", "fullName": "Flip gravity 2 objects (1 for floor, 1 for roof)", "functionType": "Action", - "group": "", "name": "FlipGravity2Objects", - "private": false, "sentence": "Flip _PARAM1_ gravity when _PARAM3_ is pressed", "events": [ { @@ -38,8 +60,7 @@ "textG": 0, "textR": 0 }, - "comment": "Store the object original values", - "comment2": "" + "comment": "Store the object original values" }, { "type": "BuiltinCommonInstructions::Standard", @@ -1991,8 +2012,7 @@ "textG": 0, "textR": 0 }, - "comment": "Restor all of the object original values", - "comment2": "" + "comment": "Restor all of the object original values" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2091,8 +2111,7 @@ "textG": 0, "textR": 0 }, - "comment": "Fall animation handler", - "comment2": "" + "comment": "Fall animation handler" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2142,8 +2161,7 @@ "textG": 0, "textR": 0 }, - "comment": "To avoid object going through walls if the force is set too high", - "comment2": "" + "comment": "To avoid object going through walls if the force is set too high" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2181,8 +2199,7 @@ "textG": 0, "textR": 0 }, - "comment": "Jump while the gravity is flipped", - "comment2": "" + "comment": "Jump while the gravity is flipped" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2473,8 +2490,7 @@ "textG": 0, "textR": 0 }, - "comment": "To avoid bug (stuck on floor while jumping in flipped gravity)", - "comment2": "" + "comment": "To avoid bug (stuck on floor while jumping in flipped gravity)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2571,163 +2587,89 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Platformer character object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "Sprite", "type": "objectList" }, { - "codeOnly": false, - "defaultValue": "", "description": "Platformer character behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "PlatformBehavior::PlatformerObjectBehavior", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Flip gravity key", "longDescription": "Any key will work except the Jump key.", "name": "Key", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Floor object", - "longDescription": "", "name": "Floor", - "optional": false, - "supplementaryInformation": "", "type": "objectList" }, { - "codeOnly": false, - "defaultValue": "", "description": "Roof object", - "longDescription": "", "name": "Roof", - "optional": false, - "supplementaryInformation": "", "type": "objectList" }, { - "codeOnly": false, - "defaultValue": "", "description": "Flip gravity force power", "longDescription": "The higher number the stronger the force.\n0 for object falling speed.", "name": "FlipForce", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Moving right key", - "longDescription": "", "name": "RightKey", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Moving left key", - "longDescription": "", "name": "LeftKey", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Idle animation number", - "longDescription": "", "name": "IdleAnimation", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Move animation number", - "longDescription": "", "name": "MoveAnimation", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Fall animation number", - "longDescription": "", "name": "FallAnimation", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Can flip gravity while in air after performing a jump", - "longDescription": "", "name": "FlipInAir", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" }, { - "codeOnly": false, - "defaultValue": "", "description": "Trigger gravity flip once every single press until flip key is released", - "longDescription": "", "name": "TriggerOnce", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" }, { - "codeOnly": false, - "defaultValue": "", "description": "Ability to jump while the gravity is flipped", - "longDescription": "", "name": "JumpAbility", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" }, { - "codeOnly": false, - "defaultValue": "", "description": "Jump key", "longDescription": "Leave it empty if you select No for Jump ability.", "name": "JumpKey", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Jump strength", "longDescription": "Leave it empty if you select No for Jump ability.", "name": "JumpStrength", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -2737,9 +2679,7 @@ "description": "Flip the gravity for platformer character (you have 1 object), Example:\n• Floor object at the bottom, Floor object at the top.", "fullName": "Flip gravity 1 object (Floor, Roof)", "functionType": "Action", - "group": "", "name": "FlipGravity1Object", - "private": false, "sentence": "Flip _PARAM1_ gravity when _PARAM3_ is pressed", "events": [ { @@ -2752,8 +2692,7 @@ "textG": 0, "textR": 0 }, - "comment": "Store the object original values", - "comment2": "" + "comment": "Store the object original values" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4450,8 +4389,7 @@ "textG": 0, "textR": 0 }, - "comment": "Restor all of the object original values", - "comment2": "" + "comment": "Restor all of the object original values" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4550,8 +4488,7 @@ "textG": 0, "textR": 0 }, - "comment": "Fall animation handler", - "comment2": "" + "comment": "Fall animation handler" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4601,8 +4538,7 @@ "textG": 0, "textR": 0 }, - "comment": "To avoid object going through walls if the force is set too high", - "comment2": "" + "comment": "To avoid object going through walls if the force is set too high" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4630,8 +4566,7 @@ "textG": 0, "textR": 0 }, - "comment": "Jump while the gravity is flipped", - "comment2": "" + "comment": "Jump while the gravity is flipped" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4882,8 +4817,7 @@ "textG": 0, "textR": 0 }, - "comment": "To avoid bug (stuck on floor while jumping in flipped gravity)", - "comment2": "" + "comment": "To avoid bug (stuck on floor while jumping in flipped gravity)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4960,153 +4894,84 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Platformer character object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "Sprite", "type": "objectList" }, { - "codeOnly": false, - "defaultValue": "", "description": "Platformer character behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "PlatformBehavior::PlatformerObjectBehavior", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Flip gravity key", "longDescription": "Any key will work except the Jump key.", "name": "Key", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Floor object", - "longDescription": "", "name": "Floor", - "optional": false, - "supplementaryInformation": "", "type": "objectList" }, { - "codeOnly": false, - "defaultValue": "", "description": "Flip gravity force power", "longDescription": "The higher number the stronger the force.\n0 for object falling speed.", "name": "FlipForce", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Moving right key", - "longDescription": "", "name": "RightKey", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Moving left key", - "longDescription": "", "name": "LeftKey", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Idle animation number", - "longDescription": "", "name": "IdleAnimation", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Move animation number", - "longDescription": "", "name": "MoveAnimation", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Fall animation number", - "longDescription": "", "name": "FallAnimation", - "optional": false, - "supplementaryInformation": "", "type": "expression" }, { - "codeOnly": false, - "defaultValue": "", "description": "Can flip gravity while in air after performing a jump", - "longDescription": "", "name": "FlipInAir", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" }, { - "codeOnly": false, - "defaultValue": "", "description": "Trigger gravity flip once every single press until flip key is released", - "longDescription": "", "name": "TriggerOnce", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" }, { - "codeOnly": false, - "defaultValue": "", "description": "Ability to jump while the gravity is flipped", - "longDescription": "", "name": "JumpAbility", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" }, { - "codeOnly": false, - "defaultValue": "", "description": "Jump key", "longDescription": "Leave it empty if you select No for Jump ability.", "name": "JumpKey", - "optional": false, - "supplementaryInformation": "", "type": "key" }, { - "codeOnly": false, - "defaultValue": "", "description": "Jump strength", "longDescription": "Leave it empty if you select No for Jump ability.", "name": "JumpStrength", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5116,9 +4981,7 @@ "description": "Reset the gravity back to normal for the selected object.", "fullName": "Reset gravity back to normal", "functionType": "Action", - "group": "", "name": "Reset", - "private": false, "sentence": "Reset _PARAM1_ gravity back to normal", "events": [ { @@ -5144,7 +5007,7 @@ "Object", "Behavior", "=", - "Object.Variable(__FlipGravityExtension.OriginalGravity)+FlipForce" + "Object.Variable(__FlipGravityExtension.OriginalGravity)" ] }, { @@ -5155,7 +5018,7 @@ "Object", "Behavior", "=", - "Object.Variable(__FlipGravityExtension.MaxFallingSpeed)+FlipForce", + "Object.Variable(__FlipGravityExtension.MaxFallingSpeed)", "" ] }, @@ -5183,22 +5046,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Platformer character object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "Sprite", "type": "objectList" }, { - "codeOnly": false, - "defaultValue": "", "description": "Platformer character behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "PlatformBehavior::PlatformerObjectBehavior", "type": "behavior" }