diff --git a/examples/3d-shark-frenzy/3d-shark-frenzy.json b/examples/3d-shark-frenzy/3d-shark-frenzy.json index e663d6745..41afe20ce 100644 --- a/examples/3d-shark-frenzy/3d-shark-frenzy.json +++ b/examples/3d-shark-frenzy/3d-shark-frenzy.json @@ -1,7 +1,7 @@ { "firstLayout": "Menu", "gdVersion": { - "build": 223, + "build": 231, "major": 5, "minor": 5, "revision": 0 @@ -810,6 +810,7 @@ "assetStoreId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", "name": "PlayButton", "type": "PanelSpriteButton::PanelSpriteButton", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -921,6 +922,7 @@ ], "content": { "centerLocation": "ObjectCenter", + "crossfadeDuration": 0, "depth": 252, "height": 252, "keepAspectRatio": true, @@ -954,6 +956,7 @@ "assetStoreId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", "name": "LeaderboardButton", "type": "PanelSpriteButton::PanelSpriteButton", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -1049,6 +1052,7 @@ "assetStoreId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", "name": "SettingsButton", "type": "PanelSpriteButton::PanelSpriteButton", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -1216,6 +1220,7 @@ "assetStoreId": "d32eb2703c5acb4488d36fef28164ddf46d8f5b2f3f7a97fa11640cf8d1d91e9", "name": "VolumeSlider", "type": "PanelSpriteSlider::PanelSpriteSlider", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -1311,6 +1316,7 @@ "assetStoreId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", "name": "BackButton", "type": "PanelSpriteButton::PanelSpriteButton", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -1512,6 +1518,7 @@ "assetStoreId": "", "name": "ScreenOrientationChecker", "type": "ScreenOrientationChecker::ScreenOrientationChecker", + "variant": "", "variables": [], "effects": [], "behaviors": [], @@ -2530,6 +2537,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 252, "height": 252, "keepAspectRatio": true, @@ -2568,6 +2576,7 @@ "behaviors": [], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 169, "height": 169, "keepAspectRatio": true, @@ -2590,6 +2599,7 @@ "behaviors": [], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 206, "height": 206, "keepAspectRatio": true, @@ -2607,6 +2617,7 @@ "assetStoreId": "6d3db6815965204d2834e8cad91e32297418907dfed0ebd1e03104e0f2c6139c", "name": "BloodParticleEmitter", "type": "ParticleEmitter3D::ParticleEmitter3D", + "variant": "", "variables": [], "effects": [], "behaviors": [], @@ -2724,6 +2735,7 @@ "assetStoreId": "112c69f62e03fa6df7716cc6b8f174c17857fbf71c8d3fffd16fa8fdbfa49bf1", "name": "MoveJoystick", "type": "SpriteMultitouchJoystick::SpriteMultitouchJoystick", + "variant": "", "variables": [], "effects": [], "behaviors": [], @@ -2888,6 +2900,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 30, "height": 30, "keepAspectRatio": true, @@ -2972,6 +2985,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 30, "height": 30, "keepAspectRatio": true, @@ -3056,6 +3070,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 30, "height": 30, "keepAspectRatio": true, @@ -3140,6 +3155,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 30, "height": 30, "keepAspectRatio": true, @@ -3188,6 +3204,7 @@ "assetStoreId": "17a00ca25428306c8db067b2dd8379e9fe1cb562c10443ae2f65f3d561e54f1e", "name": "HealthBar", "type": "PanelSpriteContinuousBar::PanelSpriteContinuousBar", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -3465,6 +3482,7 @@ "assetStoreId": "17a00ca25428306c8db067b2dd8379e9fe1cb562c10443ae2f65f3d561e54f1e", "name": "StaminaBar", "type": "PanelSpriteContinuousBar::PanelSpriteContinuousBar", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -3639,6 +3657,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 45, "height": 45, "keepAspectRatio": true, @@ -3723,6 +3742,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 40, "height": 40, "keepAspectRatio": true, @@ -3904,6 +3924,7 @@ "assetStoreId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", "name": "MenuButton", "type": "PanelSpriteButton::PanelSpriteButton", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -3999,6 +4020,7 @@ "assetStoreId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", "name": "SumbitScoreButton", "type": "PanelSpriteButton::PanelSpriteButton", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -4222,6 +4244,7 @@ "behaviors": [], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 50, "height": 50, "keepAspectRatio": true, @@ -4239,6 +4262,7 @@ "assetStoreId": "6d3db6815965204d2834e8cad91e32297418907dfed0ebd1e03104e0f2c6139c", "name": "RedExplosion", "type": "ParticleEmitter3D::ParticleEmitter3D", + "variant": "", "variables": [], "effects": [], "behaviors": [], @@ -4305,6 +4329,7 @@ "behaviors": [], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 91, "height": 91, "keepAspectRatio": true, @@ -4352,6 +4377,7 @@ ], "content": { "centerLocation": "ModelOrigin", + "crossfadeDuration": 0, "depth": 108, "height": 108, "keepAspectRatio": true, @@ -4609,6 +4635,7 @@ "assetStoreId": "351f05a136c91ee1d9d6ff4f9cfbc4d40b3744d7c7ea74212b4853862d52d974", "name": "BubblesParticleEmitter", "type": "ParticleEmitter3D::ParticleEmitter3D", + "variant": "", "variables": [], "effects": [], "behaviors": [ @@ -7669,13 +7696,18 @@ "category": "Input", "extensionNamespace": "", "fullName": "Screen Orientation Checker", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNjcmVlbi1yb3RhdGlvbiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik03LjUsMjEuNUM0LjI1LDE5Ljk0IDEuOTEsMTYuNzYgMS41NSwxM0gwLjA1QzAuNTYsMTkuMTYgNS43MSwyNCAxMiwyNEwxMi42NiwyMy45N0w4Ljg1LDIwLjE2TTE0LjgzLDIxLjE5TDIuODEsOS4xN0w5LjE3LDIuODFMMjEuMTksMTQuODNNMTAuMjMsMS43NUM5LjY0LDEuMTYgOC42OSwxLjE2IDguMTEsMS43NUwxLjc1LDguMTFDMS4xNiw4LjcgMS4xNiw5LjY1IDEuNzUsMTAuMjNMMTMuNzcsMjIuMjVDMTQuMzYsMjIuODQgMTUuMzEsMjIuODQgMTUuODksMjIuMjVMMjIuMjUsMTUuODlDMjIuODQsMTUuMyAyMi44NCwxNC4zNSAyMi4yNSwxMy43N0wxMC4yMywxLjc1TTE2LjUsMi41QzE5Ljc1LDQuMDcgMjIuMDksNy4yNCAyMi40NSwxMUgyMy45NUMyMy40NCw0Ljg0IDE4LjI5LDAgMTIsMEwxMS4zNCwwLjAzTDE1LjE1LDMuODRMMTYuNSwyLjVaIiAvPjwvc3ZnPg==", "name": "ScreenOrientationChecker", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/0126888931a4a4f82bb2824df9f096347ace1c47f510c44df42aa8dc9e49e24a_screen-rotation.svg", - "shortDescription": "Display a screen asking the user to rotate their phone/tablet if not in the right orientation.", - "version": "0.0.1", - "description": "Display a screen asking the user to rotate their phone/tablet if not in the right orientation.", + "shortDescription": "Display a customizable screen asking the user to rotate their phone/tablet if not in the right orientation.", + "version": "0.1.0", + "description": "Display a customizable screen asking the user to rotate their phone/tablet if not in the right orientation.", + "origin": { + "identifier": "ScreenOrientationChecker", + "name": "gdevelop-extension-store" + }, "tags": [ "screen", "orientation" @@ -7751,11 +7783,265 @@ "areaMinY": 0, "areaMinZ": 0, "defaultName": "", - "description": "Automatically display a black screen asking the player to rotate their screen if needed - on mobile phones and tablets only. Put this at position 0;0 on a UI layer (or a layer where the camera is not moving).", + "description": "Automatically display a screen asking the player to rotate their screen if needed - on mobile phones and tablets only. Set up Anchor behavior on this object so that top/bottom/left/right edges are anchored to the screen top/bottom/left/right.", "fullName": "Screen Orientation Checker", "isInnerAreaFollowingParentSize": true, "isUsingLegacyInstancesRenderer": false, "name": "ScreenOrientationChecker", + "objects": [ + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "Text", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 0, + "leftEdgeAnchor": 4, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 0, + "topEdgeAnchor": 4, + "useLegacyBottomAndRightAnchors": false + }, + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ], + "string": "Rotate screen to play", + "font": "", + "textAlignment": "center", + "characterSize": 30, + "color": { + "b": 255, + "g": 255, + "r": 255 + }, + "content": { + "bold": true, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Rotate screen to play", + "font": "", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 30, + "color": "255;255;255" + } + }, + { + "assetStoreId": "", + "name": "BackgroundPainter", + "type": "PrimitiveDrawing::Drawer", + "variables": [], + "effects": [], + "behaviors": [], + "fillOpacity": 255, + "outlineSize": 0, + "outlineOpacity": 255, + "absoluteCoordinates": true, + "clearBetweenFrames": true, + "antialiasing": "none", + "fillColor": { + "r": 0, + "g": 0, + "b": 0 + }, + "outlineColor": { + "r": 0, + "g": 0, + "b": 0 + } + }, + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Icon", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Anchor", + "type": "AnchorBehavior::AnchorBehavior", + "bottomEdgeAnchor": 0, + "leftEdgeAnchor": 4, + "topEdgeAnchor": 4, + "relativeToOriginalWindowSize": true, + "rightEdgeAnchor": 0, + "useLegacyBottomAndRightAnchors": false + }, + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ], + "animations": [ + { + "name": "", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [ + { + "hasCustomCollisionMask": true, + "image": "rotate-screen-icon.png", + "points": [], + "originPoint": { + "name": "origine", + "x": 52.5, + "y": 56.5 + }, + "centerPoint": { + "automatic": true, + "name": "centre", + "x": 0, + "y": 0 + }, + "customCollisionMask": [ + [ + { + "x": 0, + "y": 1 + }, + { + "x": 105, + "y": 1 + }, + { + "x": 105, + "y": 113 + }, + { + "x": 0, + "y": 113 + } + ] + ] + } + ] + } + ] + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Text" + }, + { + "objectName": "BackgroundPainter" + }, + { + "objectName": "Icon" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [ + { + "angle": 0, + "customSize": true, + "depth": 1, + "height": 35, + "keepRatio": true, + "layer": "", + "name": "Text", + "persistentUuid": "65c003ea-19c0-4f18-a189-a02a24378f35", + "width": 207, + "x": 104, + "y": 120, + "zOrder": 15, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "keepRatio": true, + "layer": "", + "name": "BackgroundPainter", + "persistentUuid": "49ff4576-6406-41de-a43b-1355529d61fe", + "width": 0, + "x": 38, + "y": 17, + "zOrder": 14, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "keepRatio": true, + "layer": "", + "name": "Icon", + "persistentUuid": "39cbfc66-13f4-43dc-b6ef-2bda83153277", + "width": 0, + "x": 204, + "y": 64, + "zOrder": 16, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + } + ], "eventsFunctions": [ { "fullName": "", @@ -7820,11 +8106,12 @@ "actions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::SetPropertyIsShown" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "IsShown", + "False", + "" ] } ] @@ -7846,11 +8133,12 @@ "actions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::SetPropertyIsShown" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "IsShown", + "False", + "" ] } ] @@ -7890,11 +8178,12 @@ "actions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::SetPropertyIsShown" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "IsShown", + "False", + "" ] } ] @@ -7916,11 +8205,12 @@ "actions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::SetPropertyIsShown" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "IsShown", + "False", + "" ] } ] @@ -7972,25 +8262,24 @@ "actions": [ { "type": { - "value": "ResizableCapability::ResizableBehavior::SetSize" + "value": "PrimitiveDrawing::FillColor" }, "parameters": [ - "Object", - "Resizable", - "ScreenWidth()", - "ScreenHeight()" + "BackgroundPainter", + "BackgroundColor" ] }, { "type": { - "value": "PrimitiveDrawing::Rectangle" + "value": "PrimitiveDrawing::RoundedRectangle" }, "parameters": [ "BackgroundPainter", - "0", - "0", - "SceneWindowWidth()", - "SceneWindowHeight()" + "Padding", + "Padding", + "Object.Width()-Padding", + "Object.Height()-Padding", + "CornerRadius" ] }, { @@ -8010,19 +8299,23 @@ { "type": { "inverted": true, - "value": "ScreenOrientationChecker::ScreenOrientationChecker::PropertyIsShown" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "IsShown", + "True", + "" ] }, { "type": { "inverted": true, - "value": "ScreenOrientationChecker::ScreenOrientationChecker::PropertyIsForceShown" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "IsForceShown", + "True", + "" ] } ], @@ -8048,7 +8341,7 @@ "parameters": [ "Icon", "=", - "Text.Y() - 150" + "Text.Y() - 100" ] } ] @@ -8202,7 +8495,7 @@ "objectGroups": [] }, { - "description": "Check if the screen should be forced to be shown. Use this to test the screen in your game", + "description": "Check if the screen should be forced to be shown. Use this to test the screen in your game.", "fullName": "Force show the screen", "functionType": "Condition", "group": "Screen Orientation Checker configuration", @@ -8214,10 +8507,12 @@ "conditions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::PropertyIsForceShown" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "IsForceShown", + "True", + "" ] } ], @@ -8244,7 +8539,7 @@ "objectGroups": [] }, { - "description": "Change if the screen should be forced to be shown. Use this to test the screen in your game", + "description": "Change if the screen should be forced to be shown. Use this to test the screen in your game.", "fullName": "Force show the screen", "functionType": "Action", "group": "Screen Orientation Checker configuration", @@ -8257,21 +8552,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::SetPropertyIsForceShown" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "IsForceShown", + "False", + "" ] } ] @@ -8281,21 +8579,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ScreenOrientationChecker::ScreenOrientationChecker::SetPropertyIsForceShown" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "IsForceShown", + "False", + "" ] } ] @@ -8338,262 +8639,38 @@ "group": "", "extraInformation": [], "name": "IsForceShown" - } - ], - "objects": [ - { - "assetStoreId": "", - "bold": true, - "italic": false, - "name": "Text", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 0, - "leftEdgeAnchor": 4, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 0, - "topEdgeAnchor": 4, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - ], - "string": "Rotate screen to play", - "font": "", - "textAlignment": "center", - "characterSize": 30, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": true, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Rotate screen to play", - "font": "", - "textAlignment": "center", - "verticalTextAlignment": "top", - "characterSize": 30, - "color": "255;255;255" - } - }, - { - "assetStoreId": "", - "name": "BackgroundPainter", - "type": "PrimitiveDrawing::Drawer", - "variables": [], - "effects": [], - "behaviors": [], - "fillOpacity": 255, - "outlineSize": 1, - "outlineOpacity": 255, - "absoluteCoordinates": true, - "clearBetweenFrames": true, - "antialiasing": "none", - "fillColor": { - "r": 0, - "g": 0, - "b": 0 - }, - "outlineColor": { - "r": 0, - "g": 0, - "b": 0 - } }, { - "adaptCollisionMaskAutomatically": true, - "assetStoreId": "", - "name": "Icon", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 0, - "leftEdgeAnchor": 4, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 0, - "topEdgeAnchor": 0, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - ], - "animations": [ - { - "name": "", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 0.08, - "sprites": [ - { - "hasCustomCollisionMask": true, - "image": "assets/rotate-screen-icon.png", - "points": [], - "originPoint": { - "name": "origine", - "x": 52.5, - "y": 56.5 - }, - "centerPoint": { - "automatic": true, - "name": "centre", - "x": 0, - "y": 0 - }, - "customCollisionMask": [ - [ - { - "x": 0, - "y": 1 - }, - { - "x": 105, - "y": 1 - }, - { - "x": 105, - "y": 113 - }, - { - "x": 0, - "y": 113 - } - ] - ] - } - ] - } - ] - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Text" - }, - { - "objectName": "BackgroundPainter" - }, - { - "objectName": "Icon" - } - ] - }, - "objectsGroups": [], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 35, - "keepRatio": true, - "layer": "", - "name": "Text", - "persistentUuid": "65c003ea-19c0-4f18-a189-a02a24378f35", - "width": 207, - "x": 104, - "y": 120, - "zOrder": 15, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] + "value": "5", + "type": "Number", + "unit": "Pixel", + "label": "Padding", + "description": "", + "group": "Appearance", + "extraInformation": [], + "name": "Padding" }, { - "angle": 0, - "customSize": false, - "height": 0, - "keepRatio": true, - "layer": "", - "name": "BackgroundPainter", - "persistentUuid": "49ff4576-6406-41de-a43b-1355529d61fe", - "width": 0, - "x": 38, - "y": 17, - "zOrder": 14, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] + "value": "10", + "type": "Number", + "unit": "Pixel", + "label": "Corner radius", + "description": "Corner radius for the background", + "group": "Appearance", + "extraInformation": [], + "name": "CornerRadius" }, { - "angle": 0, - "customSize": false, - "height": 0, - "keepRatio": true, - "layer": "", - "name": "Icon", - "persistentUuid": "39cbfc66-13f4-43dc-b6ef-2bda83153277", - "width": 0, - "x": 198, - "y": 62, - "zOrder": 16, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] + "value": "0;0;0", + "type": "Color", + "label": "Background color", + "description": "", + "group": "Appearance", + "extraInformation": [], + "name": "BackgroundColor" } - ] + ], + "variants": [] } ] }, @@ -8602,12 +8679,13 @@ "category": "Visual effect", "extensionNamespace": "", "fullName": "Advanced 3D tween", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRlbm5pcy1iYWxsIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEyLDJDMTQuNSwyIDE2Ljc1LDIuOSAxOC41LDQuNEMxNi4zNiw2LjIzIDE1LDguOTYgMTUsMTJDMTUsMTUuMDQgMTYuMzYsMTcuNzcgMTguNSwxOS42QzE2Ljc1LDIxLjEgMTQuNSwyMiAxMiwyMkM5LjUsMjIgNy4yNSwyMS4xIDUuNSwxOS42QzcuNjQsMTcuNzcgOSwxNS4wNCA5LDEyQzksOC45NiA3LjY0LDYuMjMgNS41LDQuNEM3LjI1LDIuOSA5LjUsMiAxMiwyTTIyLDEyQzIyLDE0LjMyIDIxLjIxLDE2LjQ1IDE5Ljg4LDE4LjE1QzE4LjEyLDE2LjY4IDE3LDE0LjQ3IDE3LDEyQzE3LDkuNTMgMTguMTIsNy4zMiAxOS44OCw1Ljg1QzIxLjIxLDcuNTUgMjIsOS42OCAyMiwxMk0yLDEyQzIsOS42OCAyLjc5LDcuNTUgNC4xMiw1Ljg1QzUuODgsNy4zMiA3LDkuNTMgNywxMkM3LDE0LjQ3IDUuODgsMTYuNjggNC4xMiwxOC4xNUMyLjc5LDE2LjQ1IDIsMTQuMzIgMiwxMloiIC8+PC9zdmc+", "name": "Tween3D", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/30bc03f9cf5f2f42960246a605352a6937ae6b603f0177396a83193849a4724a_tennis-ball.svg", "shortDescription": "Smoothly squash, strentch, tint and wobble 3D models.", - "version": "0.2.1", + "version": "0.3.1", "description": [ "Change 3D models proportions over time to make smooth animations like wobbling.", "", @@ -8715,12 +8793,18 @@ " setColor(tintColor, originalTint) {", " const originalMaterials = originalTint.materials;", " for (const [materialId, material] of this.materials) {", - " const originalColor = originalMaterials.get(materialId).color;", - " const color = material.color;", - " color.setHex(tintColor);", - " color.r *= originalColor.r;", - " color.g *= originalColor.g;", - " color.b *= originalColor.b;", + " const originalMaterial = originalMaterials.get(materialId);", + " if (!originalMaterial) {", + " // A new material may have been changed by another extension.", + " continue;", + " }", + " const originalColor = originalMaterial.color;", + "", + " const color = material.color;", + " color.setHex(tintColor);", + " color.r *= originalColor.r;", + " color.g *= originalColor.g;", + " color.b *= originalColor.b;", " }", " }", "", @@ -8739,7 +8823,7 @@ " tints = new Map();", " /**", " * Materials by material `id`.", - " * @type {Map}", + " * @type {Tint}", " */", " originalTint;", " /**", @@ -8808,19 +8892,11 @@ " }", " else {", " const materials = new Map();", - " object.get3DRendererObject().traverse((mesh) => {", - " if (mesh.material && mesh.material.color) {", - " const material = mesh.material;", - " const originalId = material.id;", - " if (materials.has(originalId)) {", - " // Meshes can share the same material.", - " return;", - " }", - " const tintedMaterial = mesh.material.clone();", - " tintedMaterial.originalId = originalId;", - " materials.set(originalId, tintedMaterial);", - " }", - " });", + " for (const [originalId, material] of this.originalTint.materials) {", + " const tintedMaterial = material.clone();", + " tintedMaterial.originalId = originalId;", + " materials.set(originalId, tintedMaterial);", + " }", " tint = new Tint(materials);", " }", " tint.setColor(color, this.originalTint);", @@ -8840,15 +8916,15 @@ "}", "", "gdjs.registerObjectDeletedFromSceneCallback(function (runtimeScene, deletedObject) {", - " const extension = runtimeScene.__tween3DExtension;", - " if (!extension) {", - " return;", - " }", - " const managers = extension.tintManagers;", - " const manager = managers.get(deletedObject.getName());", - " if (manager) {", - " manager.applyTint(deletedObject, 0xffffff);", - " }", + " const extension = runtimeScene.__tween3DExtension;", + " if (!extension) {", + " return;", + " }", + " const managers = extension.tintManagers;", + " const manager = managers.get(deletedObject.getName());", + " if (manager) {", + " manager.applyTint(deletedObject, 0xffffff);", + " }", "});", "", "", @@ -9393,6 +9469,7 @@ "fullName": "Advanced 3D tween", "name": "Tween3D", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -10939,10 +11016,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsString" + "value": "StringVariable" }, "parameters": [ - "\"Type\"", + "Type", "=", "\"StretchZ\"" ] @@ -10969,10 +11046,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsString" + "value": "StringVariable" }, "parameters": [ - "\"Type\"", + "Type", "=", "\"StretchY\"" ] @@ -10999,10 +11076,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsString" + "value": "StringVariable" }, "parameters": [ - "\"Type\"", + "Type", "=", "\"ScaleVolume\"" ] @@ -11029,10 +11106,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsString" + "value": "StringVariable" }, "parameters": [ - "\"Type\"", + "Type", "=", "\"Tint\"" ] @@ -11729,10 +11806,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"IsPaused\"" + "IsPaused", + "True", + "" ] } ], @@ -11755,10 +11834,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"IsPaused\"" + "IsPaused", + "True", + "" ] } ], @@ -11845,10 +11926,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"JumpToEnd\"" + "JumpToEnd", + "True", + "" ] } ], @@ -12447,6 +12530,7 @@ "fullName": "3D wobble", "name": "Wobble", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -12516,11 +12600,10 @@ "conditions": [ { "type": { - "value": "Tween3D::Wobble::PropertyScaleMinTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenTime", "<", "ScaleMinTweenDuration" ] @@ -12529,22 +12612,20 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMinTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenTime", "+", "Object.Behavior::TimeDelta()" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMin", "=", "Tween3D::EaseExp(ScaleMinTweenEasing, ScaleMinTweenInitialValue, ScaleMinTweenTarget, ScaleMinTweenTime / ScaleMinTweenDuration)" ] @@ -12556,11 +12637,10 @@ "conditions": [ { "type": { - "value": "Tween3D::Wobble::PropertyScaleMinTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenTime", ">=", "ScaleMinTweenDuration" ] @@ -12569,11 +12649,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMin", "=", "ScaleMinTweenTarget" ] @@ -12587,11 +12666,10 @@ "conditions": [ { "type": { - "value": "Tween3D::Wobble::PropertyScaleMaxTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenTime", "<", "ScaleMaxTweenDuration" ] @@ -12600,22 +12678,20 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMaxTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenTime", "+", "Object.Behavior::TimeDelta()" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMax", "=", "Tween3D::EaseExp(ScaleMaxTweenEasing, ScaleMaxTweenInitialValue, ScaleMaxTweenTarget, ScaleMaxTweenTime / ScaleMaxTweenDuration)" ] @@ -12627,11 +12703,10 @@ "conditions": [ { "type": { - "value": "Tween3D::Wobble::PropertyScaleMaxTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenTime", ">=", "ScaleMaxTweenDuration" ] @@ -12640,11 +12715,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMin", "=", "ScaleMinTweenTarget" ] @@ -12697,11 +12771,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyAngle" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Angle", "+", "mod(Object.Behavior::TimeDelta() * 2 * Pi()\n / PeriodDuration, 2 * Pi())" ] @@ -12781,11 +12854,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMin", "=", "Value" ] @@ -12862,11 +12934,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMax", "=", "Value" ] @@ -12903,55 +12974,50 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMinTweenInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenInitialValue", "=", "Object.Behavior::ScaleMin()" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMinTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenTime", "=", "0" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMinTweenTarget" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenTarget", "=", "TargetedValue" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMinTweenDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenDuration", "=", "Duration" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMinTweenEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMinTweenEasing", "=", "Easing" ] @@ -13004,55 +13070,50 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMaxTweenInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenInitialValue", "=", "Object.Behavior::ScaleMax()" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMaxTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenTime", "=", "0" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMaxTweenTarget" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenTarget", "=", "TargetedValue" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMaxTweenDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenDuration", "=", "Duration" ] }, { "type": { - "value": "Tween3D::Wobble::SetPropertyScaleMaxTweenEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "ScaleMaxTweenEasing", "=", "Easing" ] @@ -13184,11 +13245,10 @@ "conditions": [ { "type": { - "value": "Tween3D::Wobble::PropertyTop" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "Top", "=", "\"Z+\"" ] @@ -13214,11 +13274,10 @@ "conditions": [ { "type": { - "value": "Tween3D::Wobble::PropertyTop" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "Top", "=", "\"Y-\"" ] @@ -13309,11 +13368,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyPeriodDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PeriodDuration", "=", "Value" ] @@ -13390,11 +13448,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyScalePeriodOffset" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ScalePeriodOffset", "=", "Value" ] @@ -13471,11 +13528,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyStretchMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StretchMin", "=", "Value" ] @@ -13552,11 +13608,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyStretchMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StretchMax", "=", "Value" ] @@ -13633,11 +13688,10 @@ "actions": [ { "type": { - "value": "Tween3D::Wobble::SetPropertyStretchPeriodOffset" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StretchPeriodOffset", "=", "Value" ] @@ -13883,17 +13937,18 @@ "category": "Movement", "extensionNamespace": "", "fullName": "Stick objects to others", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXN0aWNrZXItb3V0bGluZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik01LjUgMkMzLjYgMiAyIDMuNiAyIDUuNVYxOC41QzIgMjAuNCAzLjYgMjIgNS41IDIySDE2TDIyIDE2VjUuNUMyMiAzLjYgMjAuNCAyIDE4LjUgMkg1LjVNNS44IDRIMTguM0MxOS4zIDQgMjAuMSA0LjggMjAuMSA1LjhWMTVIMTguNkMxNi43IDE1IDE1LjEgMTYuNiAxNS4xIDE4LjVWMjBINS44QzQuOCAyMCA0IDE5LjIgNCAxOC4yVjUuOEM0IDQuOCA0LjggNCA1LjggNCIgLz48L3N2Zz4=", "name": "Sticker", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/sticker-outline.svg", "shortDescription": "Make objects follow the position and rotation of the object they are stuck to.", - "version": "0.5.1", + "version": "0.5.3", "description": [ "This extension can be useful to:", - "* Stick accessories to moving objects", - "* Animate a skeleton", - "* Delete an object with another one", + "- Stick accessories to moving objects", + "- Animate a skeleton", + "- Delete an object with another one", "", "An example allows to check it out ([open the project online](https://editor.gdevelop.io/?project=example://stick-objects))." ], @@ -14028,8 +14083,10 @@ " const deltaX = object.getCenterXInScene() - this.basisOldCenterXInScene;", " const deltaY = object.getCenterYInScene() - this.basisOldCenterYInScene;", " const angle = this.basisOldAngle * Math.PI / 180;", - " this.relativeRotatedX = (deltaX * Math.cos(angle) + deltaY * Math.sin(angle)) / this.basisOldWidth;", - " this.relativeRotatedY = (-deltaX * Math.sin(angle) + deltaY * Math.cos(angle)) / this.basisOldHeight;", + " const cosA = Math.cos(angle);", + " const sinA = Math.sin(angle);", + " this.relativeRotatedX = (deltaX * cosA + deltaY * sinA) / this.basisOldWidth;", + " this.relativeRotatedY = (-deltaX * sinA + deltaY * cosA) / this.basisOldHeight;", "", " // Save initial values to avoid calculus and rounding errors", " this.basisOriginalWidth = this.basisObject.getWidth();", @@ -14075,78 +14132,104 @@ " }", " this.followingDoneThisFrame = true;", " const basisObject = this.basisObject;", - " if (basisObject) {", - " // If the behavior on the basis object has a different name,", - " // the objects will still follow their basis objects", - " // but frame delays could happen.", - " const behaviorName = this.behavior.getName();", - " if (basisObject.hasBehavior(behaviorName)) {", - " const basisBehavior = basisObject.getBehavior(behaviorName);", - " if (basisBehavior.type === this.behavior.type) {", - " // Follow parents 1st to avoid frame delays", - " basisBehavior._sticker.followBasisObject();", - " }", + " if (!basisObject) {", + " return;", + " }", + " // If the behavior on the basis object has a different name,", + " // the objects will still follow their basis objects", + " // but frame delays could happen.", + " const behaviorName = this.behavior.getName();", + " if (basisObject.hasBehavior(behaviorName)) {", + " const basisBehavior = basisObject.getBehavior(behaviorName);", + " if (basisBehavior.type === this.behavior.type) {", + " // Follow parents 1st to avoid frame delays", + " basisBehavior._sticker.followBasisObject();", " }", + " }", + " if (this.behavior._getOnlyFollowPosition()) {", + " this.followPosition();", + " } else {", + " this.followTransformation();", + " }", + " this.updateOldCoordinates();", + " }", "", - " const object = this.behavior.owner;", - "", - " if (this.behavior._getOnlyFollowPosition()) {", - " if (object.getX() !== this.ownerOldX", - " || object.getY() !== this.ownerOldY) {", - " this.updateRelativeCoordinates();", - " }", - "", - " if (this.basisOldX !== basisObject.getX() ||", - " this.basisOldY !== basisObject.getY()) {", - " object.setPosition(", - " basisObject.getX() + this.relativeX,", - " basisObject.getY() + this.relativeY);", - " }", - " } else {", - " if (object.getX() !== this.ownerOldX", - " || object.getY() !== this.ownerOldY", - " || object.getAngle() !== this.ownerOldAngle", - " || object.getWidth() !== this.ownerOldWidth", - " || object.getHeight() !== this.ownerOldHeight) {", - " this.updateRelativeCoordinates();", - " }", + " followPosition() {", + " const object = this.behavior.owner;", + " const basisObject = this.basisObject;", + " if (!basisObject) {", + " return;", + " }", + " if (object.getX() !== this.ownerOldX", + " || object.getY() !== this.ownerOldY) {", + " this.updateRelativeCoordinates();", + " }", + " if (this.basisOldX !== basisObject.getX()", + " || this.basisOldY !== basisObject.getY()) {", + " object.setPosition(", + " basisObject.getX() + this.relativeX,", + " basisObject.getY() + this.relativeY);", + " }", + " }", "", - " // Follow basisObject", - " if (basisObject.getAngle() === this.basisOriginalAngle && this.basisOriginalAngle === 0) {", - " if (basisObject.getWidth() === this.basisOriginalWidth ||", - " basisObject.getHeight() === this.basisOriginalHeight) {", - " if (this.basisOldX !== basisObject.getX() ||", - " this.basisOldY !== basisObject.getY()) {", - " object.setPosition(", - " basisObject.getX() + this.relativeX,", - " basisObject.getY() + this.relativeY);", - " }", - " } else {", - " object.setCenterPositionInScene(", - " basisObject.getCenterXInScene() + this.relativeRotatedX * basisObject.getWidth(),", - " basisObject.getCenterYInScene() + this.relativeRotatedY * basisObject.getHeight());", + " followTransformation() {", + " const object = this.behavior.owner;", + " const basisObject = this.basisObject;", + " if (!basisObject) {", + " return;", + " }", + " if (object.getX() !== this.ownerOldX", + " || object.getY() !== this.ownerOldY", + " || object.getAngle() !== this.ownerOldAngle", + " || object.getWidth() !== this.ownerOldWidth", + " || object.getHeight() !== this.ownerOldHeight) {", + " this.updateRelativeCoordinates();", + " }", + " if (this.basisOldAngle !== this.basisObject.getAngle()", + " || this.basisOldWidth !== this.basisObject.getWidth()", + " || this.basisOldHeight !== this.basisObject.getHeight()", + " || this.basisOldCenterXInScene !== this.basisObject.getCenterXInScene()", + " || this.basisOldCenterYInScene !== this.basisObject.getCenterYInScene()) {", + " // Unproportional dimensions changes won't work as expected", + " // if the object angle is not null but nothing more can be done", + " // because there is no full affine transformation on objects.", + " if (basisObject.getWidth() !== this.basisOriginalWidth) {", + " object.setWidth(this.relativeWidth * basisObject.getWidth());", + " }", + " if (basisObject.getHeight() !== this.basisOriginalHeight) {", + " object.setHeight(this.relativeHeight * basisObject.getHeight());", + " }", + " // Follow basisObject", + " if (basisObject.getAngle() === this.basisOriginalAngle", + " && this.basisOriginalAngle === 0) {", + " if (basisObject.getWidth() === this.basisOriginalWidth", + " || basisObject.getHeight() === this.basisOriginalHeight) {", + " if (this.basisOldX !== basisObject.getX() ||", + " this.basisOldY !== basisObject.getY()) {", + " object.setPosition(", + " basisObject.getX() + this.relativeX,", + " basisObject.getY() + this.relativeY);", " }", " } else {", - " object.setAngle(basisObject.getAngle() + this.relativeAngle);", - "", - " const deltaX = this.relativeRotatedX * basisObject.getWidth();", - " const deltaY = this.relativeRotatedY * basisObject.getHeight();", - " const angle = -basisObject.getAngle() * Math.PI / 180;", - " object.setX(basisObject.getCenterXInScene() + object.getX() - object.getCenterXInScene() + deltaX * Math.cos(angle) + deltaY * Math.sin(angle));", - " object.setY(basisObject.getCenterYInScene() + object.getY() - object.getCenterYInScene() - deltaX * Math.sin(angle) + deltaY * Math.cos(angle));", - " }", - " // Unproportional dimensions changes won't work as expected", - " // if the object angle is not null but nothing more can be done", - " // because there is no full affine transformation on objects.", - " if (basisObject.getWidth() !== this.basisOriginalWidth) {", - " object.setWidth(this.relativeWidth * basisObject.getWidth());", - " }", - " if (basisObject.getHeight() !== this.basisOriginalHeight) {", - " object.setHeight(this.relativeHeight * basisObject.getHeight());", + " object.setCenterPositionInScene(", + " basisObject.getCenterXInScene() + this.relativeRotatedX * basisObject.getWidth(),", + " basisObject.getCenterYInScene() + this.relativeRotatedY * basisObject.getHeight());", " }", - " }", + " } else {", + " object.setAngle(basisObject.getAngle() + this.relativeAngle);", "", - " this.updateOldCoordinates();", + " const deltaX = this.relativeRotatedX * basisObject.getWidth();", + " const deltaY = this.relativeRotatedY * basisObject.getHeight();", + " const angle = -basisObject.getAngle() * Math.PI / 180;", + " const cosA = Math.cos(angle);", + " const sinA = Math.sin(angle);", + " object.setX(", + " basisObject.getCenterXInScene() + object.getX() - object.getCenterXInScene()", + " + deltaX * cosA + deltaY * sinA);", + " object.setY(", + " basisObject.getCenterYInScene() + object.getY() - object.getCenterYInScene()", + " - deltaX * sinA + deltaY * cosA);", + " }", " }", " }", "}", @@ -14221,6 +14304,7 @@ "fullName": "Sticker", "name": "Sticker", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -14501,12 +14585,13 @@ "category": "Visual effect", "extensionNamespace": "", "fullName": "3D object shake", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXZlY3Rvci1kaWZmZXJlbmNlLWFiIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTMsMUMxLjg5LDEgMSwxLjg5IDEsM1Y1SDNWM0g1VjFIM003LDFWM0gxMFYxSDdNMTIsMVYzSDE0VjVIMTZWM0MxNiwxLjg5IDE1LjExLDEgMTQsMUgxMk0xLDdWMTBIM1Y3SDFNMTQsN0MxNCw3IDE0LDExLjY3IDE0LDE0QzExLjY3LDE0IDcsMTQgNywxNEM3LDE0IDcsMTggNywyMEM3LDIxLjExIDcuODksMjIgOSwyMkgyMEMyMS4xMSwyMiAyMiwyMS4xMSAyMiwyMFY5QzIyLDcuODkgMjEuMTEsNyAyMCw3QzE4LDcgMTQsNyAxNCw3TTE2LDlIMjBWMjBIOVYxNkgxNEMxNS4xMSwxNiAxNiwxNS4xMSAxNiwxNFY5TTEsMTJWMTRDMSwxNS4xMSAxLjg5LDE2IDMsMTZINVYxNEgzVjEySDFaIiAvPjwvc3ZnPg==", "name": "ShakeObject3D", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/vector-difference-ab.svg", "shortDescription": "Shake 3D objects.", - "version": "2.0.4", + "version": "2.1.0", "description": [ "Shake 3D objects with translation and rotation.", "", @@ -15839,11 +15924,12 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyIsStartingAtCreation" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsStartingAtCreation", + "True", + "" ] } ], @@ -15910,11 +15996,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", "+", "TimeDelta()" ] @@ -15938,11 +16023,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "NoiseTime", "+", "TimeDelta() * Frequency" ] @@ -15977,11 +16061,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeX" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TranslationAmplitudeX", "!=", "0" ] @@ -15990,11 +16073,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeltaX", "=", "ShakeObject3D::Noise2d(\"\", NoiseTime, 1000) * TranslationAmplitudeX * EasingFactor" ] @@ -16016,11 +16098,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeY" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TranslationAmplitudeY", "!=", "0" ] @@ -16029,11 +16110,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeltaY", "=", "ShakeObject3D::Noise2d(\"\", NoiseTime, 2000) * TranslationAmplitudeY * EasingFactor" ] @@ -16055,11 +16135,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeZ" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TranslationAmplitudeZ", "!=", "0" ] @@ -16068,11 +16147,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaZ" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeltaZ", "=", "ShakeObject3D::Noise2d(\"\", NoiseTime, 3000) * TranslationAmplitudeZ * EasingFactor" ] @@ -16095,11 +16173,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeX" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RotationAmplitudeX", "!=", "0" ] @@ -16108,11 +16185,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeltaAngleX", "=", "ShakeObject3D::Noise2d(\"\", NoiseTime, 4000) * RotationAmplitudeX * EasingFactor" ] @@ -16135,11 +16211,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeY" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RotationAmplitudeY", "!=", "0" ] @@ -16148,11 +16223,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeltaAngleY", "=", "ShakeObject3D::Noise2d(\"\", NoiseTime, 5000) * RotationAmplitudeY * EasingFactor" ] @@ -16175,11 +16249,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeZ" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RotationAmplitudeZ", "!=", "0" ] @@ -16188,11 +16261,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDeltaAngleZ" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeltaAngleZ", "=", "ShakeObject3D::Noise2d(\"\", NoiseTime, 6000) * RotationAmplitudeZ * EasingFactor" ] @@ -16266,11 +16338,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeX" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TranslationAmplitudeX", "!=", "0" ] @@ -16294,11 +16365,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeY" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TranslationAmplitudeY", "!=", "0" ] @@ -16322,11 +16392,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTranslationAmplitudeZ" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TranslationAmplitudeZ", "!=", "0" ] @@ -16351,11 +16420,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeX" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RotationAmplitudeX", "!=", "0" ] @@ -16380,11 +16448,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeY" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RotationAmplitudeY", "!=", "0" ] @@ -16409,11 +16476,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyRotationAmplitudeZ" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RotationAmplitudeZ", "!=", "0" ] @@ -16463,55 +16529,50 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", "=", "0" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "NoiseTime", "=", "TimeFromStart() * Frequency" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Duration", "=", "NewDuration" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StartEasingDuration", "=", "StartEaseDuration" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StopEasingDuration", "=", "StopEaseDuration" ] @@ -16523,10 +16584,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"NewDuration\"", + "NewDuration", "<", "StartEaseDuration + StopEaseDuration" ] @@ -16535,22 +16596,20 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StartEasingDuration", "=", "StartEaseDuration * NewDuration / (StartEaseDuration + StopEaseDuration)" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StopEasingDuration", "=", "StopEaseDuration * NewDuration / (StartEaseDuration + StopEaseDuration)" ] @@ -16601,44 +16660,40 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", "=", "0" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyNoiseTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "NoiseTime", "=", "TimeFromStart() * Frequency" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Duration", "=", "1234567890" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStartEasingDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StartEasingDuration", "=", "EaseDuration" ] @@ -16690,33 +16745,30 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", "=", "0" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Duration", "=", "EaseDuration" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyStopEasingDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StopEasingDuration", "=", "EaseDuration" ] @@ -16756,22 +16808,20 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", "<", "Duration" ] }, { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", ">", "0" ] @@ -16918,11 +16968,10 @@ "actions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::SetPropertyFrequency" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Frequency", "=", "Value" ] @@ -16958,11 +17007,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyStartEasingDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StartEasingDuration", "<=", "0" ] @@ -16984,11 +17032,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyStartEasingDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StartEasingDuration", ">", "0" ] @@ -17037,11 +17084,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyStopEasingDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StopEasingDuration", "<=", "0" ] @@ -17054,11 +17100,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", "<", "Duration" ] @@ -17080,11 +17125,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Time", ">=", "Duration" ] @@ -17108,11 +17152,10 @@ "conditions": [ { "type": { - "value": "ShakeObject3D::ShakeModel3D::PropertyStopEasingDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StopEasingDuration", ">", "0" ] @@ -17371,12 +17414,13 @@ "category": "Camera", "extensionNamespace": "", "fullName": "Camera shake", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXZlY3Rvci1kaWZmZXJlbmNlLWFiIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTMsMUMxLjg5LDEgMSwxLjg5IDEsM1Y1SDNWM0g1VjFIM003LDFWM0gxMFYxSDdNMTIsMVYzSDE0VjVIMTZWM0MxNiwxLjg5IDE1LjExLDEgMTQsMUgxMk0xLDdWMTBIM1Y3SDFNMTQsN0MxNCw3IDE0LDExLjY3IDE0LDE0QzExLjY3LDE0IDcsMTQgNywxNEM3LDE0IDcsMTggNywyMEM3LDIxLjExIDcuODksMjIgOSwyMkgyMEMyMS4xMSwyMiAyMiwyMS4xMSAyMiwyMFY5QzIyLDcuODkgMjEuMTEsNyAyMCw3QzE4LDcgMTQsNyAxNCw3TTE2LDlIMjBWMjBIOVYxNkgxNEMxNS4xMSwxNiAxNiwxNS4xMSAxNiwxNFY5TTEsMTJWMTRDMSwxNS4xMSAxLjg5LDE2IDMsMTZINVYxNEgzVjEySDFaIiAvPjwvc3ZnPg==", "name": "CameraShake", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/vector-difference-ab.svg", "shortDescription": "Shake layer cameras.", - "version": "3.1.2", + "version": "3.2.0", "description": [ "Shake layer cameras with translation, rotation and zoom.", "", @@ -18635,7 +18679,7 @@ "parameters": [ "", "", - "Layer", + "NewLayer", "" ] } @@ -18662,7 +18706,7 @@ "parameters": [ "Layer", "=", - "Layer" + "NewLayer" ] }, { @@ -18672,7 +18716,7 @@ "parameters": [ "Duration", "=", - "Duration" + "NewDuration" ] }, { @@ -18692,7 +18736,7 @@ "parameters": [ "StopEaseDuration", "=", - "Duration" + "NewDuration" ] }, { @@ -18810,10 +18854,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShakeForever\"" + "ShakeForever", + "True", + "" ] } ], @@ -18850,7 +18896,7 @@ "value": "NumberVariable" }, "parameters": [ - "Duration", + "NewDuration", "=", "0" ] @@ -18886,7 +18932,7 @@ }, { "description": "Layer (base layer if empty)", - "name": "Layer", + "name": "NewLayer", "type": "layer" }, { @@ -18896,7 +18942,7 @@ }, { "description": "Duration (in seconds) (Default: 0.5)", - "name": "Duration", + "name": "NewDuration", "type": "expression" }, { @@ -19086,10 +19132,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Shakable\"" + "Shakable", + "True", + "" ] } ], @@ -19111,10 +19159,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Shakable\"" + "Shakable", + "True", + "" ] } ], @@ -20945,12 +20995,13 @@ "category": "Game mechanic", "extensionNamespace": "", "fullName": "Object \"Is On Screen\" Detection", + "gdevelopVersion": "", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLW1vbml0b3Itc2NyZWVuc2hvdCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik05LDZINVYxMEg3VjhIOU0xOSwxMEgxN1YxMkgxNVYxNEgxOU0yMSwxNkgzVjRIMjFNMjEsMkgzQzEuODksMiAxLDIuODkgMSw0VjE2QTIsMiAwIDAsMCAzLDE4SDEwVjIwSDhWMjJIMTZWMjBIMTRWMThIMjFBMiwyIDAgMCwwIDIzLDE2VjRDMjMsMi44OSAyMi4xLDIgMjEsMiIgLz48L3N2Zz4=", "name": "IsOnScreen", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/monitor-screenshot.svg", "shortDescription": "This adds a condition to detect if an object is on screen based off its current layer.", - "version": "1.2.1", + "version": "1.2.2", "description": [ "This extension adds conditions to check if an object is located within the visible portion of its layer's camera. The condition also allows for specifying padding to the virtual screen border.", "", @@ -20982,6 +21033,7 @@ "fullName": "Is on screen", "name": "InOnScreen", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "description": "Checks if an object position is within the viewport of its layer.", @@ -21076,12 +21128,13 @@ "category": "User interface", "extensionNamespace": "", "fullName": "Slider", + "gdevelopVersion": ">=5.5.222", "helpPath": "/objects/slider", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMjMiIGN5PSI3IiByPSIzIi8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMyIgeTE9IjciIHgyPSIyMCIgeTI9IjciLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIyOSIgeTE9IjciIHgyPSIyNiIgeTI9IjciLz4NCjxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjEyIiBjeT0iMTYiIHI9IjMiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIzIiB5MT0iMTYiIHgyPSI5IiB5Mj0iMTYiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIyOSIgeTE9IjE2IiB4Mj0iMTUiIHkyPSIxNiIvPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMjMiIGN5PSIyNSIgcj0iMyIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjMiIHkxPSIyNSIgeDI9IjIwIiB5Mj0iMjUiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIyOSIgeTE9IjI1IiB4Mj0iMjYiIHkyPSIyNSIvPg0KPC9zdmc+DQo=", "name": "PanelSpriteSlider", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/UI Essentials/1678c39a3b2bd3df4f82a8a293770db4986a6bcfd3f78e738ddfc86e39176423_UI Essentials_sliders_options.svg", "shortDescription": "A draggable slider that users can move to select a numerical value.", - "version": "1.4.4", + "version": "1.5.1", "description": [ "A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.", "", @@ -21129,7 +21182,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Value" + "CurrentValue" ] } ] @@ -21165,11 +21218,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::Slider::PropertyStepSize" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StepSize", "=", "0" ] @@ -21178,11 +21230,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::Slider::SetPropertyValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentValue", "=", "clamp(Value, MinValue, MaxValue)" ] @@ -21194,11 +21245,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::Slider::PropertyStepSize" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StepSize", "!=", "0" ] @@ -21207,11 +21257,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::Slider::SetPropertyValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentValue", "=", "clamp(round(Value / StepSize) * StepSize, MinValue, MaxValue)" ] @@ -21288,11 +21337,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::Slider::SetPropertyMinValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MinValue", "=", "Value" ] @@ -21381,11 +21429,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::Slider::SetPropertyMaxValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxValue", "=", "Value" ] @@ -21514,11 +21561,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::Slider::SetPropertyStepSize" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "StepSize", "=", "Value" ] @@ -21562,7 +21608,7 @@ "description": "", "group": "", "extraInformation": [], - "name": "Value" + "name": "CurrentValue" }, { "value": "0", @@ -21633,11 +21679,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -21646,11 +21691,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -21684,12 +21728,12 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "MouseIsInside", + "False", + "" ] } ] @@ -21699,11 +21743,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyShouldCheckHovering" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "ShouldCheckHovering", + "True", + "" ] }, { @@ -21720,12 +21765,12 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "MouseIsInside", + "True", + "" ] } ] @@ -21748,12 +21793,12 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "TouchIsInside", + "False", + "" ] } ] @@ -21763,11 +21808,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -21786,12 +21830,12 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ] @@ -21823,11 +21867,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -21857,23 +21900,22 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "StartedTouchOrMouseId(Index)" ] }, { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ], @@ -21915,11 +21957,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -21934,11 +21975,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -21967,20 +22007,20 @@ { "type": { "inverted": true, - "value": "PanelSpriteSlider::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -21989,11 +22029,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -22005,20 +22044,20 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -22027,11 +22066,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -22044,20 +22082,20 @@ { "type": { "inverted": true, - "value": "PanelSpriteSlider::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -22066,11 +22104,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -22082,20 +22119,20 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -22104,11 +22141,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -22143,11 +22179,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -22159,11 +22194,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -22172,11 +22206,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -22189,11 +22222,10 @@ { "type": { "inverted": true, - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -22201,11 +22233,10 @@ { "type": { "inverted": true, - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -22214,11 +22245,10 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -22261,22 +22291,20 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] }, { "type": { - "value": "PanelSpriteSlider::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -22311,11 +22339,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -22360,11 +22387,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -22409,11 +22435,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -22458,11 +22483,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -22484,11 +22508,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -22533,11 +22556,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -22582,11 +22604,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -22744,6 +22765,173 @@ "fullName": "Slider", "isUsingLegacyInstancesRenderer": true, "name": "PanelSpriteSlider", + "objects": [ + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Label", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "It displays the value when it changes.", + "font": "", + "textAlignment": "", + "characterSize": 20, + "color": { + "b": 0, + "g": 0, + "r": 0 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "It displays the value when it changes.", + "font": "", + "textAlignment": "", + "verticalTextAlignment": "top", + "characterSize": 20, + "color": "0;0;0" + } + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Thumb", + "rightMargin": 0, + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Draggable", + "type": "DraggableBehavior::Draggable", + "checkCollisionMask": false + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "FillBar", + "rightMargin": 0, + "texture": "", + "tiled": true, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Slider", + "type": "PanelSpriteSlider::Slider", + "Value": 0, + "MinValue": 0, + "MaxValue": 1, + "StepSize": 1 + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Background", + "rightMargin": 0, + "texture": "", + "tiled": true, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "ButtonFSM", + "type": "PanelSpriteSlider::ButtonFSM", + "ShouldCheckHovering": true, + "State": "Idle", + "TouchId": 0, + "TouchIsInside": false, + "MouseIsInside": false, + "Index": 0 + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Label" + }, + { + "objectName": "Thumb" + }, + { + "objectName": "FillBar" + }, + { + "objectName": "Background" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [], "eventsFunctions": [ { "fullName": "", @@ -22769,12 +22957,12 @@ "actions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::SetPropertyPreviousInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "PreviousInitialValue", "=", - "Object.PropertyInitialValue()" + "InitialValue" ] } ] @@ -22952,7 +23140,7 @@ "parameters": [ "Object", "=", - "Object.PropertyInitialValue()", + "InitialValue", "Object.PropertyInitialValue()" ] } @@ -23037,24 +23225,24 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::PropertyInitialValue" + "value": "NumberVariable" }, "parameters": [ - "Object", + "InitialValue", "!=", - "Object.PropertyPreviousInitialValue()" + "PreviousInitialValue" ] } ], "actions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::SetPropertyPreviousInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "PreviousInitialValue", "=", - "Object.PropertyInitialValue()" + "InitialValue" ] }, { @@ -23064,7 +23252,7 @@ "parameters": [ "Object", "=", - "Object.PropertyInitialValue()", + "InitialValue", "Object.PropertyInitialValue()" ] } @@ -23182,10 +23370,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::PropertyShowLabelAtChanges" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShowLabelAtChanges", + "True", + "" ] } ], @@ -23244,10 +23434,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::PropertyShowLabelAtChanges" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShowLabelAtChanges", + "True", + "" ] } ], @@ -23295,10 +23487,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::PropertyShowLabelAtChanges" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShowLabelAtChanges", + "True", + "" ] }, { @@ -23454,30 +23648,33 @@ }, { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::Scale" + "value": "ScalableCapability::ScalableBehavior::SetValue" }, "parameters": [ "Object", + "Scale", "=", "1" ] }, { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "Background", + "Resizable", "=", "Width" ] }, { "type": { - "value": "PanelSpriteObject::Height" + "value": "ResizableCapability::ResizableBehavior::SetHeight" }, "parameters": [ "Background", + "Resizable", "=", "Height" ] @@ -24004,10 +24201,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::PropertyShowLabelAtChanges" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShowLabelAtChanges", + "True", + "" ] } ], @@ -24047,21 +24246,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::SetPropertyShowLabelAtChanges" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "ShowLabelAtChanges", + "False", + "" ] }, { @@ -24079,21 +24281,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "PanelSpriteSlider::PanelSpriteSlider::SetPropertyShowLabelAtChanges" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "ShowLabelAtChanges", + "True", + "" ] }, { @@ -24149,10 +24354,11 @@ }, { "type": { - "value": "PanelSpriteObject::Height" + "value": "ResizableCapability::ResizableBehavior::SetHeight" }, "parameters": [ "FillBar", + "Resizable", "=", "round(Background.Height() - Object.PropertyBarTopPadding() - Object.PropertyBarBottomPadding())" ] @@ -24202,10 +24408,11 @@ "actions": [ { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "FillBar", + "Resizable", "=", "Object.FullBarWidth() * (FillBar.Slider::Value() - FillBar.Slider::MinValue()) / FillBar.Slider::Size()" ] @@ -24244,10 +24451,11 @@ "actions": [ { "type": { - "value": "TextObject::String" + "value": "TextContainerCapability::TextContainerBehavior::SetValue" }, "parameters": [ "Label", + "Text", "=", "ToString(Object.Value())" ] @@ -24269,12 +24477,12 @@ "parameters": [ "Label", "=", - "Thumb.Y() - Label.Height() - Object.PropertyLabelMargin()" + "Thumb.Y() - Label.Height() - LabelMargin" ] }, { "type": { - "value": "TextObject::Angle" + "value": "SetAngle" }, "parameters": [ "Label", @@ -24313,7 +24521,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.PropertyBarLeftPadding()" + "BarLeftPadding" ] } ] @@ -24348,7 +24556,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Background.Width() - Object.PropertyBarRightPadding()" + "Background.Width() - BarRightPadding" ] } ] @@ -24383,7 +24591,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Background.Width() - Object.PropertyBarLeftPadding() - Object.PropertyBarRightPadding()" + "Background.Width() - BarLeftPadding - BarRightPadding" ] } ] @@ -24433,9 +24641,8 @@ "parameters": [ "Object", "=", - "Object.PropertyMinValue()", - "Object.PropertyMaxValue()", - "" + "MinValue", + "Object.PropertyMaxValue()" ] }, { @@ -24445,7 +24652,7 @@ "parameters": [ "Object", "=", - "Object.PropertyMaxValue()", + "MaxValue", "Object.PropertyMaxValue()" ] }, @@ -24456,7 +24663,7 @@ "parameters": [ "Object", "=", - "Object.PropertyStepSize()", + "StepSize", "Object.PropertyMaxValue()" ] } @@ -24485,10 +24692,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShouldActivate\"" + "ShouldActivate", + "True", + "" ] } ], @@ -24521,10 +24730,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShouldActivate\"" + "ShouldActivate", + "True", + "" ] } ], @@ -24768,173 +24979,7 @@ "name": "ShowLabel" } ], - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "It displays the value when it changes.", - "font": "", - "textAlignment": "", - "characterSize": 20, - "color": { - "b": 0, - "g": 0, - "r": 0 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "It displays the value when it changes.", - "font": "", - "textAlignment": "", - "verticalTextAlignment": "top", - "characterSize": 20, - "color": "0;0;0" - } - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Thumb", - "rightMargin": 0, - "texture": "", - "tiled": false, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Draggable", - "type": "DraggableBehavior::Draggable", - "checkCollisionMask": false - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "FillBar", - "rightMargin": 0, - "texture": "", - "tiled": true, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Slider", - "type": "PanelSpriteSlider::Slider", - "Value": 0, - "MinValue": 0, - "MaxValue": 1, - "StepSize": 1 - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Background", - "rightMargin": 0, - "texture": "", - "tiled": true, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "ButtonFSM", - "type": "PanelSpriteSlider::ButtonFSM", - "ShouldCheckHovering": true, - "State": "Idle", - "TouchId": 0, - "TouchIsInside": false, - "MouseIsInside": false, - "Index": 0 - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Thumb" - }, - { - "objectName": "FillBar" - }, - { - "objectName": "Background" - } - ] - }, - "objectsGroups": [], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [] + "variants": [] } ] }, @@ -24943,12 +24988,13 @@ "category": "User interface", "extensionNamespace": "", "fullName": "Panel sprite button", + "gdevelopVersion": ">=5.5.222", "helpPath": "/objects/button", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI5LDIzSDNjLTEuMSwwLTItMC45LTItMlYxMWMwLTEuMSwwLjktMiwyLTJoMjZjMS4xLDAsMiwwLjksMiwydjEwQzMxLDIyLjEsMzAuMSwyMywyOSwyM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMywxOUwxMywxOWMtMS4xLDAtMi0wLjktMi0ydi0yYzAtMS4xLDAuOS0yLDItMmgwYzEuMSwwLDIsMC45LDIsMnYyQzE1LDE4LjEsMTQuMSwxOSwxMywxOXoiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjEzIiB4Mj0iMTgiIHkyPSIxOSIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjIxIiB5MT0iMTMiIHgyPSIxOCIgeTI9IjE3Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxOSIgeDI9IjE5IiB5Mj0iMTYiLz4NCjwvc3ZnPg0K", "name": "PanelSpriteButton", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg", "shortDescription": "A button that can be customized.", - "version": "1.4.6", + "version": "1.5.0", "description": [ "The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.", "", @@ -25009,11 +25055,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -25022,11 +25067,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -25060,12 +25104,12 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "MouseIsInside", + "False", + "" ] } ] @@ -25075,11 +25119,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyShouldCheckHovering" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "ShouldCheckHovering", + "True", + "" ] }, { @@ -25096,12 +25141,12 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "MouseIsInside", + "True", + "" ] } ] @@ -25124,12 +25169,12 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "TouchIsInside", + "False", + "" ] } ] @@ -25139,11 +25184,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -25162,12 +25206,12 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ] @@ -25199,11 +25243,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -25233,23 +25276,22 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "StartedTouchOrMouseId(Index)" ] }, { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ], @@ -25291,11 +25333,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -25310,11 +25351,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -25343,20 +25383,20 @@ { "type": { "inverted": true, - "value": "PanelSpriteButton::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -25365,11 +25405,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -25381,20 +25420,20 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -25403,11 +25442,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -25420,20 +25458,20 @@ { "type": { "inverted": true, - "value": "PanelSpriteButton::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -25442,11 +25480,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -25458,20 +25495,20 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -25480,11 +25517,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -25519,11 +25555,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -25535,11 +25570,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -25548,11 +25582,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -25565,11 +25598,10 @@ { "type": { "inverted": true, - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -25577,11 +25609,10 @@ { "type": { "inverted": true, - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -25590,11 +25621,10 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -25677,22 +25707,20 @@ "actions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] }, { "type": { - "value": "PanelSpriteButton::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -25727,11 +25755,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -25776,11 +25803,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -25825,11 +25851,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -25874,11 +25899,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -25900,11 +25924,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -25949,11 +25972,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -25998,11 +26020,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -26160,6 +26181,165 @@ "fullName": "Button (panel sprite)", "isUsingLegacyInstancesRenderer": true, "name": "PanelSpriteButton", + "objects": [ + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Label", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Text", + "font": "", + "textAlignment": "", + "characterSize": 20, + "color": { + "b": 0, + "g": 0, + "r": 0 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "Text", + "font": "", + "textAlignment": "", + "verticalTextAlignment": "top", + "characterSize": 20, + "color": "0;0;0" + } + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Idle", + "rightMargin": 0, + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [ + { + "folded": true, + "name": "State", + "type": "string", + "value": "Idle" + } + ], + "effects": [], + "behaviors": [ + { + "name": "ButtonFSM", + "type": "PanelSpriteButton::ButtonFSM", + "ShouldCheckHovering": true + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Hovered", + "rightMargin": 0, + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Pressed", + "rightMargin": 0, + "texture": "", + "tiled": false, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Label" + }, + { + "objectName": "Idle" + }, + { + "objectName": "Hovered" + }, + { + "objectName": "Pressed" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [], "eventsFunctions": [ { "fullName": "", @@ -26452,10 +26632,10 @@ }, { "type": { - "value": "PanelSpriteButton::PanelSpriteButton::PropertyHoveredFadeOutDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", + "HoveredFadeOutDuration", ">", "0" ] @@ -26483,10 +26663,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteButton::PanelSpriteButton::PropertyHoveredFadeOutDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", + "HoveredFadeOutDuration", "=", "0" ] @@ -27359,10 +27539,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShouldActivate\"" + "ShouldActivate", + "True", + "" ] } ], @@ -27385,10 +27567,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShouldActivate\"" + "ShouldActivate", + "True", + "" ] } ], @@ -27528,165 +27712,7 @@ "name": "HoveredFadeOutDuration" } ], - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "Text", - "font": "", - "textAlignment": "", - "characterSize": 20, - "color": { - "b": 0, - "g": 0, - "r": 0 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Text", - "font": "", - "textAlignment": "", - "verticalTextAlignment": "top", - "characterSize": 20, - "color": "0;0;0" - } - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Idle", - "rightMargin": 0, - "texture": "", - "tiled": false, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Hovered", - "rightMargin": 0, - "texture": "", - "tiled": false, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Pressed", - "rightMargin": 0, - "texture": "", - "tiled": false, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [] + "variants": [] } ] }, @@ -27695,12 +27721,13 @@ "category": "Game mechanic", "extensionNamespace": "", "fullName": "Health points and damage", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWhlYXJ0LWhhbGYtZnVsbCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNi41LDVDMTUsNSAxMy41OCw1LjkxIDEzLDcuMlYxNy43NEMxNy4yNSwxMy44NyAyMCwxMS4yIDIwLDguNUMyMCw2LjUgMTguNSw1IDE2LjUsNU0xNi41LDNDMTkuNTgsMyAyMiw1LjQxIDIyLDguNUMyMiwxMi4yNyAxOC42LDE1LjM2IDEzLjQ1LDIwLjAzTDEyLDIxLjM1TDEwLjU1LDIwLjAzQzUuNCwxNS4zNiAyLDEyLjI3IDIsOC41QzIsNS40MSA0LjQyLDMgNy41LDNDOS4yNCwzIDEwLjkxLDMuODEgMTIsNS4wOEMxMy4wOSwzLjgxIDE0Ljc2LDMgMTYuNSwzWiIgLz48L3N2Zz4=", "name": "Health", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/heart-half-full.svg", "shortDescription": "Manage health (life) points, shield and armor.", - "version": "0.3.2", + "version": "0.4.0", "description": [ "Manage health (life) points, shield and armor. ", "", @@ -27836,22 +27863,20 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyHealthRegenRate" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HealthRegenRate", "!=", "0" ] }, { "type": { - "value": "Health::Health::PropertyCurrentHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "<", "Object.Behavior::MaxHealth()" ] @@ -27871,11 +27896,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "+", "HealthRegenRate * TimeDelta()" ] @@ -27899,11 +27923,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyCurrentHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", ">", "Object.Behavior::MaxHealth()" ] @@ -27912,11 +27935,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "=", "MaxHealth" ] @@ -27943,32 +27965,32 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsHealthJustDamaged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsHealthJustDamaged", + "False", + "" ] }, { "type": { - "value": "Health::Health::SetPropertyIsJustHealed" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsJustHealed", + "False", + "" ] }, { "type": { - "value": "Health::Health::SetPropertyIsJustDodged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsJustDodged", + "False", + "" ] } ] @@ -28014,22 +28036,20 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyShieldRegenRate" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldRegenRate", "!=", "0" ] }, { "type": { - "value": "Health::Health::PropertyCurrentShieldPoints" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "<", "MaxShieldPoints" ] @@ -28053,11 +28073,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyCurrentShieldPoints" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "0" ] @@ -28082,11 +28101,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "+", "ShieldRegenRate * TimeDelta()" ] @@ -28110,11 +28128,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyCurrentShieldPoints" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", ">", "MaxShieldPoints" ] @@ -28123,11 +28140,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "MaxShieldPoints" ] @@ -28172,11 +28188,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "0" ] @@ -28201,12 +28216,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsShieldJustDamaged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsShieldJustDamaged", + "False", + "" ] } ] @@ -28280,11 +28295,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "=", "DamageValue" ] @@ -28329,21 +28343,20 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsJustDodged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsJustDodged", + "True", + "" ] }, { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "=", "0" ] @@ -28367,19 +28380,20 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"UseArmor\"" + "UseArmor", + "True", + "" ] }, { "type": { - "value": "Health::Health::PropertyDamageToBeApplied" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", ">", "0" ] @@ -28402,11 +28416,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "=", "max(0,DamageToBeApplied - FlatDamageReduction)" ] @@ -28430,22 +28443,20 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyPercentDamageReduction" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PercentDamageReduction", ">", "0" ] }, { "type": { - "value": "Health::Health::PropertyDamageToBeApplied" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", ">", "0" ] @@ -28454,11 +28465,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "*", "1 - min(1, PercentDamageReduction)" ] @@ -28499,10 +28509,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"UseShield\"" + "UseShield", + "True", + "" ] }, { @@ -28517,11 +28529,10 @@ }, { "type": { - "value": "Health::Health::PropertyDamageToBeApplied" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", ">", "0" ] @@ -28530,12 +28541,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsShieldJustDamaged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsShieldJustDamaged", + "True", + "" ] }, { @@ -28567,11 +28578,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyDamageToBeApplied" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "<=", "CurrentShieldPoints" ] @@ -28580,33 +28590,30 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "-", "DamageToBeApplied" ] }, { "type": { - "value": "Health::Health::SetPropertyShieldDamageTaken" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldDamageTaken", "=", "DamageToBeApplied" ] }, { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "=", "0" ] @@ -28630,11 +28637,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyDamageToBeApplied" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", ">", "CurrentShieldPoints" ] @@ -28643,11 +28649,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyShieldDamageTaken" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldDamageTaken", "=", "CurrentShieldPoints" ] @@ -28659,33 +28664,32 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyBlockExcessDamage" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "BlockExcessDamage", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "=", "0" ] }, { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "0" ] @@ -28710,33 +28714,32 @@ { "type": { "inverted": true, - "value": "Health::Health::PropertyBlockExcessDamage" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "BlockExcessDamage", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyDamageToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", "-", "CurrentShieldPoints" ] }, { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "0" ] @@ -28764,11 +28767,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyDamageToBeApplied" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageToBeApplied", ">", "0" ] @@ -28915,11 +28917,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "=", "Value" ] @@ -28943,11 +28944,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyMaxHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxHealth", ">", "0" ] @@ -28956,11 +28956,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "=", "min(CurrentHealth, MaxHealth)" ] @@ -29069,11 +29068,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyMaxHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxHealth", "=", "0" ] @@ -29082,11 +29080,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyHealToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HealToBeApplied", "=", "HealValue" ] @@ -29110,11 +29107,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyMaxHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxHealth", ">", "0" ] @@ -29122,22 +29118,22 @@ { "type": { "inverted": true, - "value": "Health::Health::PropertyAllowOverHealing" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "AllowOverHealing", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyHealToBeApplied" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HealToBeApplied", "=", "min(HealValue,MaxHealth - CurrentHealth)" ] @@ -29162,11 +29158,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "+", "HealToBeApplied" ] @@ -29191,12 +29186,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsJustHealed" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsJustHealed", + "True", + "" ] } ] @@ -29279,11 +29274,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyMaxHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxHealth", "=", "Value" ] @@ -29307,11 +29301,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyCurrentHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", ">", "Object.Behavior::MaxHealth()" ] @@ -29320,11 +29313,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentHealth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "=", "Object.Behavior::MaxHealth()" ] @@ -29454,11 +29446,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyHealthRegenRate" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HealthRegenRate", "=", "Value" ] @@ -29588,11 +29579,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyDamageCooldown" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageCooldown", "=", "Value" ] @@ -29722,11 +29712,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyHealthRegenDelay" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HealthRegenDelay", "=", "Value" ] @@ -29856,11 +29845,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyChanceToDodge" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ChanceToDodge", "=", "Value" ] @@ -29990,11 +29978,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyFlatDamageReduction" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FlatDamageReduction", "=", "Value" ] @@ -30124,11 +30111,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyPercentDamageReduction" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PercentDamageReduction", "=", "Value" ] @@ -30218,12 +30204,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyAllowOverHealing" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "AllowOverHealing", + "False", + "" ] } ] @@ -30233,22 +30219,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyAllowOverHealing" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "AllowOverHealing", + "True", + "" ] } ] @@ -30289,12 +30277,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyHitAtLeastOnce" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "HitAtLeastOnce", + "False", + "" ] } ] @@ -30304,22 +30292,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyHitAtLeastOnce" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "HitAtLeastOnce", + "True", + "" ] } ] @@ -30360,12 +30350,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsHealthJustDamaged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsHealthJustDamaged", + "False", + "" ] } ] @@ -30375,22 +30365,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyIsHealthJustDamaged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsHealthJustDamaged", + "True", + "" ] } ] @@ -30536,11 +30528,12 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyHitAtLeastOnce" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "HitAtLeastOnce", + "True", + "" ] } ], @@ -30598,11 +30591,12 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyIsHealthJustDamaged" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHealthJustDamaged", + "True", + "" ] } ], @@ -30660,11 +30654,12 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyIsJustHealed" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsJustHealed", + "True", + "" ] } ], @@ -30722,20 +30717,20 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyHitAtLeastOnce" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "HitAtLeastOnce", + "True", + "" ] }, { "type": { - "value": "Health::Health::PropertyDamageCooldown" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DamageCooldown", ">", "0" ] @@ -30872,11 +30867,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyCurrentHealth" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentHealth", "<=", "0" ] @@ -31045,11 +31039,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyMaxShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxShieldPoints", "=", "Value" ] @@ -31227,11 +31220,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "Value" ] @@ -31361,11 +31353,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyShieldRegenRate" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldRegenRate", "=", "Value" ] @@ -31495,11 +31486,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyShieldRegenDelay" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldRegenDelay", "=", "Value" ] @@ -31629,11 +31619,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyShieldDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldDuration", "=", "Value" ] @@ -31762,11 +31751,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "ShieldPoints" ] @@ -31778,11 +31766,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyMaxShieldPoints" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxShieldPoints", ">", "0" ] @@ -31791,11 +31778,10 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyCurrentShieldPoints" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", "=", "min(ShieldPoints,Object.Behavior::MaxShield())" ] @@ -31807,10 +31793,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"RenewShieldDuration\"" + "RenewShieldDuration", + "True", + "" ] } ], @@ -31869,12 +31857,12 @@ "actions": [ { "type": { - "value": "Health::Health::SetPropertyBlockExcessDamage" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "BlockExcessDamage", + "False", + "" ] } ] @@ -31884,22 +31872,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "Health::Health::SetPropertyBlockExcessDamage" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "BlockExcessDamage", + "True", + "" ] } ] @@ -31952,11 +31942,12 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyIsShieldJustDamaged" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsShieldJustDamaged", + "True", + "" ] } ], @@ -32014,11 +32005,12 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyIsJustDodged" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsJustDodged", + "True", + "" ] } ], @@ -32088,11 +32080,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyCurrentShieldPoints" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentShieldPoints", ">", "0" ] @@ -32117,11 +32108,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyShieldDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldDuration", "<=", "0" ] @@ -32143,11 +32133,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyShieldDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldDuration", ">", "0" ] @@ -32220,11 +32209,10 @@ "conditions": [ { "type": { - "value": "Health::Health::PropertyShieldDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ShieldDuration", ">", "0" ] @@ -32596,12 +32584,13 @@ "category": "User interface", "extensionNamespace": "", "fullName": "Resource bar (continuous)", + "gdevelopVersion": ">=5.5.222", "helpPath": "/objects/resource-bar", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBkPSJNMjgsMTJIMTRINGMtMi4yLDAtNCwxLjgtNCw0czEuOCw0LDQsNGgxMGgxNGMyLjIsMCw0LTEuOCw0LTRTMzAuMiwxMiwyOCwxMnogTTQsMThjLTEuMSwwLTItMC45LTItMnMwLjktMiwyLTJoMTANCgljMS4xLDAsMiwwLjksMiwycy0wLjksMi0yLDJINHoiLz4NCjwvc3ZnPg0K", "name": "PanelSpriteContinuousBar", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Glyphster Pack/Master/SVG/Interface Elements/ea06363a57846caab544f536b78a952234b68d4941d41c1577852a1d61aefec3_Interface Elements_interface_ui_loading_progress_bar.svg", "shortDescription": "A bar that represents a resource in the game (health, mana, ammo, etc).", - "version": "1.1.3", + "version": "1.2.1", "description": [ "A bar that represents a resource in the game (health, mana, ammo, etc).", "", @@ -32717,7 +32706,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Value" + "CurrentValue" ] } ] @@ -32754,11 +32743,10 @@ "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::SetPropertyValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentValue", "=", "clamp(Value, 0, Object.Behavior::MaxValue())" ] @@ -32770,11 +32758,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::PropertyValue" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Value", "<", "Object.Behavior::PreviousHighValue()" ] @@ -32797,11 +32784,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::PropertyValue" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Value", ">=", "PreviousHighValue" ] @@ -32890,11 +32876,10 @@ "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::SetPropertyMaxValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxValue", "=", "Value" ] @@ -32929,11 +32914,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::PropertyValue" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentValue", "=", "0" ] @@ -32978,11 +32962,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::PropertyValue" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentValue", "=", "MaxValue" ] @@ -33068,13 +33051,12 @@ "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::SetPropertyPreviousHighValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousHighValue", "=", - "Value" + "CurrentValue" ] } ] @@ -33149,11 +33131,10 @@ "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::SetPropertyPreviousHighValueDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousHighValueDuration", "=", "Value" ] @@ -33188,14 +33169,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::ResourceBar::PreviousHighValue" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousHighValue", "!=", - "Value", - "" + "CurrentValue" ] }, { @@ -33246,7 +33225,7 @@ "description": "", "group": "", "extraInformation": [], - "name": "Value" + "name": "CurrentValue" }, { "value": "3", @@ -33274,6 +33253,7 @@ "description": "", "group": "", "extraInformation": [], + "hidden": true, "name": "PreviousHighValueDuration" } ], @@ -33293,6 +33273,165 @@ "fullName": "Resource bar (continuous)", "isUsingLegacyInstancesRenderer": true, "name": "PanelSpriteContinuousBar", + "objects": [ + { + "assetStoreId": "", + "bold": false, + "italic": false, + "name": "Label", + "smoothed": true, + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "2 / 3", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 0, + "g": 0, + "r": 0 + }, + "content": { + "bold": false, + "isOutlineEnabled": false, + "isShadowEnabled": false, + "italic": false, + "outlineColor": "255;255;255", + "outlineThickness": 2, + "shadowAngle": 90, + "shadowBlurRadius": 2, + "shadowColor": "0;0;0", + "shadowDistance": 4, + "shadowOpacity": 127, + "smoothed": true, + "underlined": false, + "text": "2 / 3", + "font": "", + "textAlignment": "center", + "verticalTextAlignment": "top", + "characterSize": 20, + "color": "0;0;0" + } + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "FillBar", + "rightMargin": 0, + "texture": "", + "tiled": true, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "ResourceBar", + "type": "PanelSpriteContinuousBar::ResourceBar", + "Value": 1, + "MaxValue": 3, + "PreviousValue": 0, + "CurrentValue": 1 + }, + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Buffer", + "rightMargin": 0, + "texture": "", + "tiled": true, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "Tween", + "type": "Tween::TweenBehavior" + } + ] + }, + { + "assetStoreId": "", + "bottomMargin": 0, + "height": 32, + "leftMargin": 0, + "name": "Background", + "rightMargin": 0, + "texture": "", + "tiled": true, + "topMargin": 0, + "type": "PanelSpriteObject::PanelSprite", + "width": 32, + "variables": [], + "effects": [], + "behaviors": [] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Label" + }, + { + "objectName": "FillBar" + }, + { + "objectName": "Buffer" + }, + { + "objectName": "Background" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [], "eventsFunctions": [ { "fullName": "", @@ -33318,12 +33457,12 @@ "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::SetPropertyPreviousInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "PreviousInitialValue", "=", - "Object.PropertyInitialValue()" + "InitialValue" ] } ] @@ -33395,10 +33534,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::PropertyPreviousHighValueDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", + "PreviousHighValueDuration", ">", "0" ] @@ -33493,10 +33632,12 @@ { "type": { "inverted": true, - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::PropertyShowLabel" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShowLabel", + "True", + "" ] } ], @@ -33534,7 +33675,7 @@ "parameters": [ "Object", "=", - "Object.PropertyMaxValue()", + "MaxValue", "Object.PropertyMaxValue()" ] }, @@ -33545,7 +33686,7 @@ "parameters": [ "Object", "=", - "Object.PropertyInitialValue()", + "InitialValue", "Object.PropertyInitialValue()" ] }, @@ -33556,7 +33697,7 @@ "parameters": [ "Object", "=", - "Object.PropertyPreviousHighValueDuration()", + "PreviousHighValueDuration", "" ] }, @@ -33572,10 +33713,11 @@ }, { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "FillBar", + "Resizable", "=", "Object.WidthForValue()" ] @@ -33619,7 +33761,7 @@ "parameters": [ "Object", "=", - "Object.PropertyMaxValue()", + "MaxValue", "Object.PropertyMaxValue()" ] } @@ -33630,24 +33772,24 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::PropertyInitialValue" + "value": "NumberVariable" }, "parameters": [ - "Object", + "InitialValue", "!=", - "Object.PropertyPreviousInitialValue()" + "PreviousInitialValue" ] } ], "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::SetPropertyPreviousInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "PreviousInitialValue", "=", - "Object.PropertyInitialValue()" + "InitialValue" ] }, { @@ -33657,7 +33799,7 @@ "parameters": [ "Object", "=", - "Object.PropertyInitialValue()", + "InitialValue", "Object.PropertyInitialValue()" ] }, @@ -33668,7 +33810,7 @@ "parameters": [ "Object", "=", - "Object.PropertyPreviousHighValueDuration()", + "PreviousHighValueDuration", "" ] }, @@ -33690,10 +33832,11 @@ "actions": [ { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "FillBar", + "Resizable", "=", "Object.WidthForValue()" ] @@ -33798,30 +33941,33 @@ }, { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::Scale" + "value": "ScalableCapability::ScalableBehavior::SetValue" }, "parameters": [ "Object", + "Scale", "=", "1" ] }, { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "Background", + "Resizable", "=", "Width" ] }, { "type": { - "value": "PanelSpriteObject::Height" + "value": "ResizableCapability::ResizableBehavior::SetHeight" }, "parameters": [ "Background", + "Resizable", "=", "Height" ] @@ -33877,7 +34023,7 @@ "actions": [ { "type": { - "value": "Tween::AddObjectWidthTween" + "value": "Tween::TweenBehavior::AddObjectWidthTween2" }, "parameters": [ "Buffer", @@ -33885,7 +34031,7 @@ "\"ChangeValue\"", "Object.WidthForValue()", "\"linear\"", - "Object.PropertyEasingDuration() * 1000", + "EasingDuration", "" ] } @@ -33896,10 +34042,11 @@ "conditions": [ { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::Width" }, "parameters": [ "FillBar", + "Resizable", "<", "Buffer.Width()" ] @@ -33922,10 +34069,11 @@ "conditions": [ { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::Width" }, "parameters": [ "FillBar", + "Resizable", ">=", "Buffer.Width()" ] @@ -33972,29 +34120,31 @@ "parameters": [ "FillBar", "=", - "Object.PropertyBarLeftPadding()", + "BarLeftPadding", "=", - "Object.PropertyBarTopPadding()" + "BarTopPadding" ] }, { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "FillBar", + "Resizable", "=", "Object.WidthForValue()" ] }, { "type": { - "value": "PanelSpriteObject::Height" + "value": "ResizableCapability::ResizableBehavior::SetHeight" }, "parameters": [ "FillBar", + "Resizable", "=", - "round(Background.Height() - Object.PropertyBarTopPadding() - Object.PropertyBarBottomPadding())" + "round(Background.Height() - BarTopPadding - BarBottomPadding)" ] } ] @@ -34017,20 +34167,22 @@ }, { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "Buffer", + "Resizable", "=", "FillBar.Width()" ] }, { "type": { - "value": "PanelSpriteObject::Height" + "value": "ResizableCapability::ResizableBehavior::SetHeight" }, "parameters": [ "Buffer", + "Resizable", "=", "FillBar.Height()" ] @@ -34048,9 +34200,9 @@ "parameters": [ "Label", "=", - "Object.PropertyBarLeftPadding()", + "BarLeftPadding", "=", - "Object.PropertyBarTopPadding()" + "BarTopPadding" ] }, { @@ -34080,7 +34232,7 @@ "parameters": [ "Label", "=", - "Background.CenterX() + (Object.PropertyBarLeftPadding() - Object.PropertyBarRightPadding()) / 2" + "Background.CenterX() + (BarLeftPadding - BarRightPadding) / 2" ] } ] @@ -34162,10 +34314,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::PropertyEasingDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", + "EasingDuration", ">", "0" ] @@ -34174,7 +34326,7 @@ "actions": [ { "type": { - "value": "Tween::AddObjectWidthTween" + "value": "Tween::TweenBehavior::AddObjectWidthTween2" }, "parameters": [ "FillBar", @@ -34182,7 +34334,7 @@ "\"ChangeValue\"", "Object.WidthForValue()", "\"linear\"", - "Object.PropertyEasingDuration() * 1000", + "EasingDuration", "" ] } @@ -34193,10 +34345,10 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::PropertyEasingDuration" + "value": "NumberVariable" }, "parameters": [ - "Object", + "EasingDuration", "<=", "0" ] @@ -34205,10 +34357,11 @@ "actions": [ { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "FillBar", + "Resizable", "=", "Object.WidthForValue()" ] @@ -34247,10 +34400,11 @@ "actions": [ { "type": { - "value": "PanelSpriteObject::Width" + "value": "ResizableCapability::ResizableBehavior::SetWidth" }, "parameters": [ "Buffer", + "Resizable", "=", "round(Object.FullBarWidth() * FillBar.ResourceBar::PreviousHighValue() / FillBar.ResourceBar::MaxValue())" ] @@ -34291,7 +34445,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "FillBar.ResourceBar::PropertyMaxValue()" + "FillBar.ResourceBar::MaxValue()" ] } ] @@ -34475,7 +34629,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "FillBar.ResourceBar::PropertyPreviousHighValueDuration()" + "FillBar.ResourceBar::PreviousHighValueDuration()" ] } ] @@ -34683,7 +34837,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Background.Width() - Object.PropertyBarLeftPadding() - Object.PropertyBarRightPadding()" + "Background.Width() - BarLeftPadding - BarRightPadding" ] } ] @@ -34715,10 +34869,12 @@ "conditions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::PropertyShowLabel" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShowLabel", + "True", + "" ] } ], @@ -34758,21 +34914,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::SetPropertyShowLabel" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "ShowLabel", + "False", + "" ] }, { @@ -34790,21 +34949,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "PanelSpriteContinuousBar::PanelSpriteContinuousBar::SetPropertyShowLabel" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "ShowLabel", + "True", + "" ] }, { @@ -34848,10 +35010,11 @@ "actions": [ { "type": { - "value": "TextObject::String" + "value": "TextContainerCapability::TextContainerBehavior::SetValue" }, "parameters": [ "Label", + "Text", "=", "ToString(round(Object.Value())) + \" / \" + ToString(Object.MaxValue())" ] @@ -35017,164 +35180,7 @@ "name": "LabelVerticalAnchorTarget" } ], - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [], - "string": "2 / 3", - "font": "", - "textAlignment": "center", - "characterSize": 20, - "color": { - "b": 0, - "g": 0, - "r": 0 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "2 / 3", - "font": "", - "textAlignment": "center", - "verticalTextAlignment": "top", - "characterSize": 20, - "color": "0;0;0" - } - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "FillBar", - "rightMargin": 0, - "texture": "", - "tiled": true, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "ResourceBar", - "type": "PanelSpriteContinuousBar::ResourceBar", - "Value": 1, - "MaxValue": 3, - "PreviousValue": 0 - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Buffer", - "rightMargin": 0, - "texture": "", - "tiled": true, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 0, - "height": 32, - "leftMargin": 0, - "name": "Background", - "rightMargin": 0, - "texture": "", - "tiled": true, - "topMargin": 0, - "type": "PanelSpriteObject::PanelSprite", - "width": 32, - "variables": [], - "effects": [], - "behaviors": [] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "FillBar" - }, - { - "objectName": "Buffer" - }, - { - "objectName": "Background" - } - ] - }, - "objectsGroups": [], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [] + "variants": [] } ] }, @@ -35183,12 +35189,13 @@ "category": "General", "extensionNamespace": "", "fullName": "Repeat every X seconds", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXJlcGVhdCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNywxN0g3VjE0TDMsMThMNywyMlYxOUgxOVYxM0gxN003LDdIMTdWMTBMMjEsNkwxNywyVjVINVYxMUg3VjdaIiAvPjwvc3ZnPg==", "name": "RepeatEveryXSeconds", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/repeat.svg", "shortDescription": "Trigger an event every X seconds.", - "version": "0.1.1", + "version": "0.2.0", "description": "Convenience conditions, actions and behaviors for timers to trigger a condition every X seconds.", "origin": { "identifier": "RepeatEveryXSeconds", @@ -35922,11 +35929,10 @@ }, { "type": { - "value": "RepeatEveryXSeconds::RepeatTimer::SetPropertyCounter" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Counter", "+", "1" ] @@ -36049,11 +36055,10 @@ "actions": [ { "type": { - "value": "RepeatEveryXSeconds::RepeatTimer::SetPropertyCounter" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Counter", "=", "0" ] @@ -36129,12 +36134,13 @@ "category": "Input", "extensionNamespace": "", "fullName": "Multitouch joystick and buttons (sprite)", + "gdevelopVersion": ">=5.5.222", "helpPath": "/objects/multitouch-joystick", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMTYiIGN5PSIxNiIgcj0iMTMiLz4NCjxwb2x5bGluZSBjbGFzcz0ic3QwIiBwb2ludHM9IjI4LjQsMTIgMjAsMTIgMjAsMy42ICIvPg0KPHBvbHlsaW5lIGNsYXNzPSJzdDAiIHBvaW50cz0iMjAsMjguNCAyMCwyMCAyOC40LDIwICIvPg0KPHBvbHlsaW5lIGNsYXNzPSJzdDAiIHBvaW50cz0iMy42LDIwIDEyLDIwIDEyLDI4LjQgIi8+DQo8cG9seWxpbmUgY2xhc3M9InN0MCIgcG9pbnRzPSIxMiwzLjYgMTIsMTIgMy42LDEyICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxNiw2IDE2LjcsNyAxNS4zLDcgIi8+DQo8cG9seWdvbiBjbGFzcz0ic3QwIiBwb2ludHM9IjE2LDI2IDE1LjMsMjUgMTYuNywyNSAiLz4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iNiwxNiA3LDE1LjMgNywxNi43ICIvPg0KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIyNiwxNiAyNSwxNi43IDI1LDE1LjMgIi8+DQo8L3N2Zz4NCg==", "name": "SpriteMultitouchJoystick", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_controller_joystick_arrows_direction.svg", "shortDescription": "Joysticks or buttons for touchscreens.", - "version": "1.6.1", + "version": "1.8.2", "description": [ "Multitouch joysticks can be used the same way as physical gamepads:", "- 4 or 8 directions", @@ -36232,10 +36238,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"TargetedSpeed\"", + "TargetedSpeed", "<", "0" ] @@ -36260,10 +36266,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", "<", "TargetedSpeed" ] @@ -36287,20 +36293,20 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", ">", "TargetedSpeed" ] }, { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", "<", "0" ] @@ -36336,10 +36342,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", ">=", "0" ] @@ -36365,10 +36371,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"TargetedSpeed\"", + "TargetedSpeed", ">", "0" ] @@ -36393,10 +36399,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", ">", "TargetedSpeed" ] @@ -36420,20 +36426,20 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", "<", "TargetedSpeed" ] }, { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", ">", "0" ] @@ -36469,10 +36475,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", "<=", "0" ] @@ -36498,10 +36504,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"TargetedSpeed\"", + "TargetedSpeed", "=", "0" ] @@ -36514,10 +36520,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", "<", "0" ] @@ -36541,10 +36547,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsNumber" + "value": "NumberVariable" }, "parameters": [ - "\"CurrentSpeed\"", + "CurrentSpeed", ">", "0" ] @@ -37931,10 +37937,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsString" + "value": "StringVariable" }, "parameters": [ - "\"Side\"", + "Side", "=", "\"Left\"" ] @@ -37969,10 +37975,10 @@ "conditions": [ { "type": { - "value": "CompareArgumentAsString" + "value": "StringVariable" }, "parameters": [ - "\"Side\"", + "Side", "=", "\"Right\"" ] @@ -38173,11 +38179,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyTouchIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchIndex", "=", "0" ] @@ -38195,11 +38200,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -38218,11 +38222,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "StartedTouchOrMouseId(TouchIndex)" ] @@ -38235,11 +38238,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyTouchIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchIndex", "+", "1" ] @@ -38305,11 +38307,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -38414,11 +38415,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyJoystickForce" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "JoystickForce", "=", "Value" ] @@ -38512,11 +38512,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyJoystickAngle" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "JoystickAngle", "=", "Value" ] @@ -38782,11 +38781,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -38845,11 +38843,10 @@ }, { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -38926,11 +38923,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyControllerIdentifier" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ControllerIdentifier", "=", "Value" ] @@ -39007,11 +39003,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyJoystickIdentifier" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "JoystickIdentifier", "=", "Value" ] @@ -39088,11 +39083,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyDeadZoneRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DeadZoneRadius", "=", "Value" ] @@ -39140,11 +39134,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchJoystick::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "Value" ] @@ -39273,12 +39266,12 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::SetPropertyIsReleased" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsReleased", + "False", + "" ] }, { @@ -39320,11 +39313,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::SetPropertyTouchIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchIndex", "=", "0" ] @@ -39373,11 +39365,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "StartedTouchOrMouseId(TouchIndex)" ] @@ -39401,11 +39392,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::SetPropertyTouchIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchIndex", "+", "1" ] @@ -39453,21 +39443,20 @@ }, { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::SetPropertyIsReleased" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsReleased", + "True", + "" ] }, { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -39502,11 +39491,12 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::PropertyIsReleased" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsReleased", + "True", + "" ] } ], @@ -39549,11 +39539,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::MultitouchButton::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -39701,6 +39690,7 @@ "fullName": "Platformer multitouch controller mapper", "name": "PlatformerMultitouchMapper", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -39923,6 +39913,7 @@ "fullName": "3D platformer multitouch controller mapper", "name": "Platformer3DMultitouchMapper", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -40066,6 +40057,7 @@ "fullName": "3D shooter multitouch controller mapper", "name": "Shooter3DMultitouchMapper", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -40198,6 +40190,7 @@ "fullName": "First person camera multitouch controller mapper", "name": "FirstPersonMultitouchMapper", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -40223,11 +40216,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyCurrentRotationSpeedZ" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentRotationSpeedZ", "=", "SpriteMultitouchJoystick::AcceleratedSpeed(CurrentRotationSpeedZ, SpriteMultitouchJoystick::StickForceX(ControllerIdentifier, CameraStick) * HorizontalRotationSpeedMax, HorizontalRotationSpeedMax, HorizontalRotationAcceleration, HorizontalRotationDeceleration)" ] @@ -40244,11 +40236,10 @@ }, { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyCurrentRotationSpeedY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CurrentRotationSpeedY", "=", "SpriteMultitouchJoystick::AcceleratedSpeed(CurrentRotationSpeedY, SpriteMultitouchJoystick::StickForceY(ControllerIdentifier, CameraStick) * VerticalRotationSpeedMax, VerticalRotationSpeedMax, VerticalRotationAcceleration, VerticalRotationDeceleration)" ] @@ -40448,11 +40439,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyHorizontalRotationSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HorizontalRotationSpeedMax", "=", "Value" ] @@ -40529,11 +40519,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyHorizontalRotationAcceleration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HorizontalRotationAcceleration", "=", "Value" ] @@ -40610,11 +40599,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyHorizontalRotationDeceleration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HorizontalRotationDeceleration", "=", "Value" ] @@ -40691,11 +40679,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyVerticalRotationSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "VerticalRotationSpeedMax", "=", "Value" ] @@ -40772,11 +40759,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyVerticalRotationAcceleration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "VerticalRotationAcceleration", "=", "Value" ] @@ -40853,11 +40839,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyVerticalRotationDeceleration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "VerticalRotationDeceleration", "=", "Value" ] @@ -40934,11 +40919,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyVerticalAngleMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "VerticalAngleMin", "=", "Value" ] @@ -41015,11 +40999,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyVerticalAngleMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "VerticalAngleMax", "=", "Value" ] @@ -41096,11 +41079,10 @@ "actions": [ { "type": { - "value": "SpriteMultitouchJoystick::FirstPersonMultitouchMapper::SetPropertyOffsetZ" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "OffsetZ", "=", "Value" ] @@ -41268,11 +41250,186 @@ ], "sharedPropertyDescriptors": [] }, + { + "description": "Control a 3D physics car with a multitouch controller.", + "fullName": "3D car multitouch controller mapper", + "name": "PhysicsCar3DMultitouchMapper", + "objectType": "", + "quickCustomizationVisibility": "hidden", + "eventsFunctions": [ + { + "fullName": "", + "functionType": "Action", + "name": "doStepPreEvents", + "sentence": "", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteMultitouchJoystick::StickForce" + }, + "parameters": [ + "", + ">", + "0", + "ControllerIdentifier", + "SteerJoystickIdentifier", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Physics3D::PhysicsCar3D::SimulateSteeringStick" + }, + "parameters": [ + "Object", + "PhysicsCar3D", + "SpriteMultitouchJoystick::StickForceX(ControllerIdentifier, \"Primary\")" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteMultitouchJoystick::StickForce" + }, + "parameters": [ + "", + ">", + "0", + "ControllerIdentifier", + "SpeedJoystickIdentifier", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "Physics3D::PhysicsCar3D::SimulateAcceleratorStick" + }, + "parameters": [ + "Object", + "PhysicsCar3D", + "-SpriteMultitouchJoystick::StickForceY(ControllerIdentifier, \"Secondary\")" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SpriteMultitouchJoystick::IsButtonPressed" + }, + "parameters": [ + "", + "ControllerIdentifier", + "HandBrakeButton", + "\"Down\"" + ] + } + ], + "actions": [ + { + "type": { + "value": "Physics3D::PhysicsCar3D::SimulateHandBrakeKey" + }, + "parameters": [ + "Object", + "PhysicsCar3D" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "SpriteMultitouchJoystick::PhysicsCar3DMultitouchMapper", + "type": "behavior" + } + ], + "objectGroups": [] + } + ], + "propertyDescriptors": [ + { + "value": "", + "type": "Behavior", + "label": "3D physics car", + "description": "", + "group": "", + "extraInformation": [ + "Physics3D::PhysicsCar3D" + ], + "name": "PhysicsCar3D" + }, + { + "value": "1", + "type": "Number", + "label": "Controller identifier (1, 2, 3, 4...)", + "description": "", + "group": "", + "extraInformation": [], + "name": "ControllerIdentifier" + }, + { + "value": "Primary", + "type": "Choice", + "label": "Steer joystick", + "description": "", + "group": "Controls", + "extraInformation": [ + "Primary", + "Secondary" + ], + "name": "SteerJoystickIdentifier" + }, + { + "value": "Secondary", + "type": "Choice", + "label": "Speed joystick", + "description": "", + "group": "Controls", + "extraInformation": [ + "Primary", + "Secondary" + ], + "name": "SpeedJoystickIdentifier" + }, + { + "value": "B", + "type": "String", + "label": "Hand brake button name", + "description": "", + "group": "Controls", + "extraInformation": [], + "name": "HandBrakeButton" + } + ], + "sharedPropertyDescriptors": [] + }, { "description": "Control a top-down character with a multitouch controller.", "fullName": "Top-down multitouch controller mapper", "name": "TopDownMultitouchMapper", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -41285,11 +41442,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "StickMode", "=", "\"Analog\"" ] @@ -41314,11 +41470,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "StickMode", "=", "\"360°\"" ] @@ -41343,11 +41498,10 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::TopDownMultitouchMapper::PropertyStickMode" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "StickMode", "=", "\"8 Directions\"" ] @@ -41844,6 +41998,110 @@ "fullName": "Multitouch Joystick", "isUsingLegacyInstancesRenderer": true, "name": "SpriteMultitouchJoystick", + "objects": [ + { + "adaptCollisionMaskAutomatically": false, + "assetStoreId": "", + "name": "Thumb", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [] + } + ] + } + ] + }, + { + "adaptCollisionMaskAutomatically": false, + "assetStoreId": "", + "name": "Border", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [ + { + "name": "MultitouchJoystick", + "type": "SpriteMultitouchJoystick::MultitouchJoystick", + "ControllerIdentifier": 1, + "JoystickIdentifier": "Primary", + "FloatingEnabled": false, + "DeadZoneRadius": 0.4, + "JoystickAngle": 0, + "JoystickForce": 0, + "TouchId": 0, + "TouchIndex": 0 + } + ], + "animations": [ + { + "name": "Idle", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [] + } + ] + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Thumb" + }, + { + "objectName": "Border" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [], "eventsFunctions": [ { "fullName": "", @@ -41982,10 +42240,12 @@ "conditions": [ { "type": { - "value": "SpriteMultitouchJoystick::SpriteMultitouchJoystick::PropertyShouldBeHiddenWhenReleased" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShouldBeHiddenWhenReleased", + "True", + "" ] }, { @@ -42017,6 +42277,16 @@ "no", "" ] + }, + { + "type": { + "value": "SetBooleanVariable" + }, + "parameters": [ + "ShouldBeHiddenWhenReleased", + "False", + "" + ] } ] } @@ -42177,11 +42447,12 @@ }, { "type": { - "value": "SpriteMultitouchJoystick::SpriteMultitouchJoystick::SetPropertyShouldBeHiddenWhenReleased" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "ShouldBeHiddenWhenReleased", + "True", + "" ] }, { @@ -42307,10 +42578,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShouldActivate\"" + "ShouldActivate", + "True", + "" ] } ], @@ -42332,10 +42605,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShouldActivate\"" + "ShouldActivate", + "True", + "" ] } ], @@ -43026,110 +43301,7 @@ "name": "ShouldBeHiddenWhenReleased" } ], - "objects": [ - { - "adaptCollisionMaskAutomatically": false, - "assetStoreId": "", - "name": "Thumb", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "Idle", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 0.08, - "sprites": [] - } - ] - } - ] - }, - { - "adaptCollisionMaskAutomatically": false, - "assetStoreId": "", - "name": "Border", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "MultitouchJoystick", - "type": "SpriteMultitouchJoystick::MultitouchJoystick", - "ControllerIdentifier": 1, - "JoystickIdentifier": "Primary", - "FloatingEnabled": false, - "DeadZoneRadius": 0.4, - "JoystickAngle": 0, - "JoystickForce": 0, - "TouchId": 0, - "TouchIndex": 0 - } - ], - "animations": [ - { - "name": "Idle", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 0.08, - "sprites": [] - } - ] - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Thumb" - }, - { - "objectName": "Border" - } - ] - }, - "objectsGroups": [], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [] + "variants": [] } ] }, @@ -43138,12 +43310,13 @@ "category": "Visual effect", "extensionNamespace": "", "fullName": "3D particle emitter", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWZpcmUiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTcuNjYgMTEuMkMxNy40MyAxMC45IDE3LjE1IDEwLjY0IDE2Ljg5IDEwLjM4QzE2LjIyIDkuNzggMTUuNDYgOS4zNSAxNC44MiA4LjcyQzEzLjMzIDcuMjYgMTMgNC44NSAxMy45NSAzQzEzIDMuMjMgMTIuMTcgMy43NSAxMS40NiA0LjMyQzguODcgNi40IDcuODUgMTAuMDcgOS4wNyAxMy4yMkM5LjExIDEzLjMyIDkuMTUgMTMuNDIgOS4xNSAxMy41NUM5LjE1IDEzLjc3IDkgMTMuOTcgOC44IDE0LjA1QzguNTcgMTQuMTUgOC4zMyAxNC4wOSA4LjE0IDEzLjkzQzguMDggMTMuODggOC4wNCAxMy44MyA4IDEzLjc2QzYuODcgMTIuMzMgNi42OSAxMC4yOCA3LjQ1IDguNjRDNS43OCAxMCA0Ljg3IDEyLjMgNSAxNC40N0M1LjA2IDE0Ljk3IDUuMTIgMTUuNDcgNS4yOSAxNS45N0M1LjQzIDE2LjU3IDUuNyAxNy4xNyA2IDE3LjdDNy4wOCAxOS40MyA4Ljk1IDIwLjY3IDEwLjk2IDIwLjkyQzEzLjEgMjEuMTkgMTUuMzkgMjAuOCAxNy4wMyAxOS4zMkMxOC44NiAxNy42NiAxOS41IDE1IDE4LjU2IDEyLjcyTDE4LjQzIDEyLjQ2QzE4LjIyIDEyIDE3LjY2IDExLjIgMTcuNjYgMTEuMk0xNC41IDE3LjVDMTQuMjIgMTcuNzQgMTMuNzYgMTggMTMuNCAxOC4xQzEyLjI4IDE4LjUgMTEuMTYgMTcuOTQgMTAuNSAxNy4yOEMxMS42OSAxNyAxMi40IDE2LjEyIDEyLjYxIDE1LjIzQzEyLjc4IDE0LjQzIDEyLjQ2IDEzLjc3IDEyLjMzIDEzQzEyLjIxIDEyLjI2IDEyLjIzIDExLjYzIDEyLjUgMTAuOTRDMTIuNjkgMTEuMzIgMTIuODkgMTEuNyAxMy4xMyAxMkMxMy45IDEzIDE1LjExIDEzLjQ0IDE1LjM3IDE0LjhDMTUuNDEgMTQuOTQgMTUuNDMgMTUuMDggMTUuNDMgMTUuMjNDMTUuNDYgMTYuMDUgMTUuMSAxNi45NSAxNC41IDE3LjVIMTQuNVoiIC8+PC9zdmc+", "name": "ParticleEmitter3D", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/f2e5a34bf465f781866677762d385d6c8e9e8d203383f2df9a3b7e0fad6a2cb5_fire.svg", "shortDescription": "Display a large number of particles to create visual effects.", - "version": "2.0.5", + "version": "2.1.1", "description": [ "Particle emitters can be used to display:", "- Fire", @@ -43205,14 +43378,16 @@ " const threeObject3D = this.get3DRendererObject();", "", " threeObject3D.rotation.set(", - " gdjs.toRad(this._object.getRotationX()),", + " // TODO The rotation on X goes the wrong way.", + " // Increment the major and remove this sign.", + " - gdjs.toRad(this._object.getRotationX()),", " gdjs.toRad(this._object.getRotationY()),", - " -gdjs.toRad(this._object.angle)", + " gdjs.toRad(this._object.angle)", " );", "", " threeObject3D.position.set(", " this._object.getX(),", - " -this._object.getY(),", + " this._object.getY(),", " this._object.getZ()", " );", "", @@ -49917,6 +50092,71 @@ "is3D": true, "isUsingLegacyInstancesRenderer": true, "name": "ParticleEmitter3D", + "objects": [ + { + "adaptCollisionMaskAutomatically": true, + "assetStoreId": "", + "name": "Particle", + "type": "Sprite", + "updateIfNotVisible": false, + "variables": [], + "effects": [], + "behaviors": [], + "animations": [ + { + "name": "Image", + "useMultipleDirections": false, + "directions": [ + { + "looping": false, + "timeBetweenFrames": 0.08, + "sprites": [] + } + ] + } + ] + } + ], + "objectsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "objectName": "Particle" + } + ] + }, + "objectsGroups": [], + "layers": [ + { + "ambientLightColorB": 200, + "ambientLightColorG": 200, + "ambientLightColorR": 200, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 3, + "cameraType": "", + "followBaseLayerCamera": false, + "isLightingLayer": false, + "isLocked": false, + "name": "", + "renderingType": "", + "visibility": true, + "cameras": [ + { + "defaultSize": true, + "defaultViewport": true, + "height": 0, + "viewportBottom": 1, + "viewportLeft": 0, + "viewportRight": 1, + "viewportTop": 0, + "width": 0 + } + ], + "effects": [] + } + ], + "instances": [], "eventsFunctions": [ { "fullName": "", @@ -50045,7 +50285,7 @@ "", "// This is a hack that may break in future releases.", "// Replace the group that would hold children objects by the emmiter.", - "const layer = gameScene.getLayer(object.getLayer());", + "const layer = object.getInstanceContainer().getLayer(object.getLayer());", "const group = object.getRenderer()._threeGroup;", "layer.getRenderer().remove3DRendererObject(group);", "particleSystem.emitter.position.copy(group.position);", @@ -50135,7 +50375,7 @@ " for (const layerName of layerNames) {", " const layer = gameScene.getLayer(layerName);", " if (layer.__particleEmmiter3DExtension) {", - " layer.__particleEmmiter3DExtension.batchSystem.update(object.getElapsedTime() / 1000);", + " layer.__particleEmmiter3DExtension.batchSystem.update(layer.getElapsedTime() / 1000);", " }", " }", "}" @@ -50416,10 +50656,12 @@ { "type": { "inverted": true, - "value": "ParticleEmitter3D::ParticleEmitter3D::PropertyAreParticlesRelative" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "AreParticlesRelative", + "True", + "" ] } ], @@ -50441,10 +50683,12 @@ "conditions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::PropertyAreParticlesRelative" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "AreParticlesRelative", + "True", + "" ] } ], @@ -50579,7 +50823,7 @@ " for (const layerName of layerNames) {", " const layer = gameScene.getLayer(layerName);", " if (layer.__particleEmmiter3DExtension) {", - " layer.__particleEmmiter3DExtension.batchSystem.update(object.getElapsedTime() / 1000);", + " layer.__particleEmmiter3DExtension.batchSystem.update(layer.getElapsedTime() / 1000);", " }", " }", "}" @@ -50619,10 +50863,16 @@ " // Here runtimeScene is the gdjs.CustomRuntimeObjectInstanceContainer inside the custom object.", " const gameScene = object.getRuntimeScene();", "", - " const layer = gameScene.getLayer(object.getLayer());", + " let rootObject = object;", + " while (rootObject.getInstanceContainer().getOwner) {", + " rootObject = rootObject.getInstanceContainer().getOwner();", + " }", + "", + " const layer = gameScene.getLayer(rootObject.getLayer());", " layer.__particleEmmiter3DExtension = layer.__particleEmmiter3DExtension || {};", " if (!layer.__particleEmmiter3DExtension.batchSystem) {", " const batchSystem = new gdjs.__particleEmmiter3DExtension.BatchedRenderer();", + " batchSystem.scale.y *= -1;", " const threeScene = layer.getRenderer().getThreeScene();", " if (threeScene) {", " threeScene.add(batchSystem);", @@ -50666,7 +50916,7 @@ ], "parameterObjects": "Object", "useStrict": true, - "eventsSheetExpanded": false + "eventsSheetExpanded": true } ], "parameters": [ @@ -50794,10 +51044,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyZ" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "Z", "=", "Value" ] @@ -50866,10 +51116,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyRotationX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "RotationX", "=", "Value" ] @@ -50949,10 +51199,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyRotationY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "RotationY", "=", "Value" ] @@ -51030,10 +51280,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyStartColor" + "value": "SetStringVariable" }, "parameters": [ - "Object", + "StartColor", "=", "Value" ] @@ -51112,10 +51362,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyEndColor" + "value": "SetStringVariable" }, "parameters": [ - "Object", + "EndColor", "=", "Value" ] @@ -51194,10 +51444,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyStartOpacity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "StartOpacity", "=", "Value" ] @@ -51276,10 +51526,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyEndOpacity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "EndOpacity", "=", "Value" ] @@ -51358,10 +51608,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyFlow" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "Flow", "=", "Value" ] @@ -51441,10 +51691,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyStartSizeMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "StartSizeMin", "=", "Value" ] @@ -51523,10 +51773,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyStartSizeMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "StartSizeMax", "=", "Value" ] @@ -51606,10 +51856,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyEndScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "EndScale", "=", "Value" ] @@ -51689,10 +51939,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyStartSpeedMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "StartSpeedMin", "=", "Value" ] @@ -51771,10 +52021,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyStartSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "StartSpeedMax", "=", "Value" ] @@ -51853,10 +52103,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyLifespanMin" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "LifespanMin", "=", "Value" ] @@ -51936,10 +52186,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyLifespanMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "LifespanMax", "=", "Value" ] @@ -52019,10 +52269,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "Duration", "=", "Value" ] @@ -52066,10 +52316,12 @@ "conditions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::PropertyAreParticlesRelative" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "AreParticlesRelative", + "True", + "" ] } ], @@ -52109,21 +52361,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyAreParticlesRelative" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "AreParticlesRelative", + "False", + "" ] } ] @@ -52133,21 +52388,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyAreParticlesRelative" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "AreParticlesRelative", + "True", + "" ] } ] @@ -52232,10 +52490,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertySpayConeAngle" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "SpayConeAngle", "=", "Value" ] @@ -52317,10 +52575,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyBlending" + "value": "SetStringVariable" }, "parameters": [ - "Object", + "Blending", "=", "Value" ] @@ -52401,10 +52659,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyGravityTop" + "value": "SetStringVariable" }, "parameters": [ - "Object", + "GravityTop", "=", "Value" ] @@ -52484,10 +52742,10 @@ "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyGravity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", + "Gravity", "=", "Value" ] @@ -52531,10 +52789,12 @@ "conditions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::PropertyShouldAutodestruct" + "value": "BooleanVariable" }, "parameters": [ - "Object" + "ShouldAutodestruct", + "True", + "" ] } ], @@ -52574,21 +52834,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyShouldAutodestruct" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "no" + "ShouldAutodestruct", + "False", + "" ] } ] @@ -52598,21 +52861,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ParticleEmitter3D::ParticleEmitter3D::SetPropertyShouldAutodestruct" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "yes" + "ShouldAutodestruct", + "True", + "" ] } ] @@ -52873,71 +53139,7 @@ "name": "RotationY" } ], - "objects": [ - { - "adaptCollisionMaskAutomatically": true, - "assetStoreId": "", - "name": "Particle", - "type": "Sprite", - "updateIfNotVisible": false, - "variables": [], - "effects": [], - "behaviors": [], - "animations": [ - { - "name": "Image", - "useMultipleDirections": false, - "directions": [ - { - "looping": false, - "timeBetweenFrames": 0.08, - "sprites": [] - } - ] - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Particle" - } - ] - }, - "objectsGroups": [], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [] + "variants": [] } ] }, @@ -52946,12 +53148,13 @@ "category": "Camera", "extensionNamespace": "", "fullName": "Smooth Camera", + "gdevelopVersion": ">=5.5.222", "helpPath": "/tutorials/follow-player-with-camera/", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQoJLnN0MXtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCjwvc3R5bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjQsMTNoLTZjLTEuMSwwLTItMC45LTItMlY1YzAtMS4xLDAuOS0yLDItMmg2YzEuMSwwLDIsMC45LDIsMnY2QzI2LDEyLjEsMjUuMSwxMywyNCwxM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yNiw4djEwYzAsMS4xLTAuOSwyLTIsMkg4Yy0xLjEsMC0yLTAuOS0yLTJWOGMwLTEuMSwwLjktMiwyLTJoOCIvPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMjEiIGN5PSI4IiByPSIyIi8+DQo8Y2lyY2xlIGNsYXNzPSJzdDAiIGN4PSIxMSIgY3k9IjE2IiByPSIxIi8+DQo8cmVjdCB4PSI5IiB5PSI5IiBjbGFzcz0ic3QwIiB3aWR0aD0iNCIgaGVpZ2h0PSIzIi8+DQo8cG9seWxpbmUgY2xhc3M9InN0MCIgcG9pbnRzPSIyMSwyOSAyMSwyOSAxMSwyOSAxMSwyOSAiLz4NCjxwb2x5bGluZSBjbGFzcz0ic3QwIiBwb2ludHM9IjE4LDIwIDE4LDI5IDE0LDI5IDE0LDIwICIvPg0KPHJlY3QgeD0iNyIgeT0iMyIgY2xhc3M9InN0MCIgd2lkdGg9IjQiIGhlaWdodD0iMyIvPg0KPC9zdmc+DQo=", "name": "SmoothCamera", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Computers and Hardware/Computers and Hardware_camcoder_gopro_go_pro_camera.svg", "shortDescription": "Smoothly scroll to follow an object.", - "version": "0.3.3", + "version": "0.4.2", "description": [ "The camera follows an object according to:", "- a frame rate independent catch-up speed to make the scrolling from smooth to strong", @@ -52988,6 +53191,7 @@ "fullName": "Smooth Camera", "name": "SmoothCamera", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -53145,11 +53349,10 @@ }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraDelay" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraDelay", "=", "CameraDelay" ] @@ -53184,11 +53387,12 @@ { "type": { "inverted": true, - "value": "SmoothCamera::SmoothCamera::PropertyIsCalledManually" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsCalledManually", + "True", + "" ] } ], @@ -53246,12 +53450,12 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIsCalledManually" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsCalledManually", + "True", + "" ] }, { @@ -53345,22 +53549,22 @@ "conditions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::PropertyFollowOnX" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "FollowOnX", + "True", + "" ] } ], "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyOldX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "OldX", "=", "CameraX(Object.Layer(), 0)" ] @@ -53502,22 +53706,22 @@ "conditions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::PropertyFollowOnY" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "FollowOnY", + "True", + "" ] } ], "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyOldY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "OldY", "=", "CameraY(Object.Layer(), 0)" ] @@ -53695,44 +53899,40 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyWaitingEnd" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "WaitingEnd", "=", "TimeFromStart() + NewWaitingDuration" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyWaitingSpeedXMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "WaitingSpeedXMax", "=", "NewWaitingSpeedXMax" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyWaitingSpeedYMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "WaitingSpeedYMax", "=", "NewWaitingSpeedYMax" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraDelayCatchUpDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraDelayCatchUpDuration", "=", "NewCatchUpDuration" ] @@ -53841,11 +54041,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -53888,11 +54087,10 @@ }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -54141,11 +54339,11 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowOnX" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", + "FollowOnX", + "False", "" ] } @@ -54156,22 +54354,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowOnX" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "FollowOnX", + "True", + "" ] } ] @@ -54211,11 +54411,11 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowOnY" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", + "FollowOnY", + "False", "" ] } @@ -54226,22 +54426,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowOnY" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "FollowOnY", + "True", + "" ] } ] @@ -54281,11 +54483,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowFreeAreaTop" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FollowFreeAreaTop", "=", "max(0, Value)" ] @@ -54327,11 +54528,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowFreeAreaTop" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FollowFreeAreaTop", "=", "max(0, Value)" ] @@ -54373,11 +54573,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowFreeAreaTop" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FollowFreeAreaTop", "=", "max(0, Value)" ] @@ -54419,11 +54618,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyFollowFreeAreaBottom" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FollowFreeAreaBottom", "=", "max(0, Value)" ] @@ -54465,11 +54663,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLeftwardSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LeftwardSpeedMax", "=", "max(0, Value)" ] @@ -54511,11 +54708,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLeftwardSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LeftwardSpeedMax", "=", "max(0, Value)" ] @@ -54557,11 +54753,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyUpwardSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "UpwardSpeedMax", "=", "max(0, Value)" ] @@ -54603,11 +54798,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDownwardSpeedMax" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DownwardSpeedMax", "=", "max(0, Value)" ] @@ -54649,22 +54843,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLeftwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LeftwardSpeed", "=", "clamp(0, 1, Value)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLogLeftwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LogLeftwardSpeed", "=", "log(1 - Value)" ] @@ -54706,22 +54898,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyRightwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "RightwardSpeed", "=", "clamp(0, 1, Value)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLogRightwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LogRightwardSpeed", "=", "log(1 - Value)" ] @@ -54763,22 +54953,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDownwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DownwardSpeed", "=", "clamp(0, 1, Value)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLogDownwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LogDownwardSpeed", "=", "log(1 - Value)" ] @@ -54820,22 +55008,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyUpwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "UpwardSpeed", "=", "clamp(0, 1, Value)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyLogUpwardSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "LogUpwardSpeed", "=", "log(1 - Value)" ] @@ -54917,11 +55103,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraOffsetX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraOffsetX", "=", "Value" ] @@ -55070,11 +55255,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraOffsetY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraOffsetY", "=", "Value" ] @@ -55159,11 +55343,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastTime", "=", "min(0, Value)" ] @@ -55205,13 +55388,12 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraDelay" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraDelay", "=", - "min(0, Value)" + "max(0, Value)" ] } ] @@ -55501,22 +55683,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDelayedCenterX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DelayedCenterX", "=", "Object.CenterX()" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDelayedCenterY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DelayedCenterY", "=", "Object.CenterY()" ] @@ -55722,22 +55902,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDelayedCenterX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DelayedCenterX", "=", "Object.Variable(__SmoothCamera.ObjectX[0])" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDelayedCenterY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DelayedCenterY", "=", "Object.Variable(__SmoothCamera.ObjectY[0])" ] @@ -55800,11 +55978,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraExtraDelay" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraExtraDelay", "+", "max(0, TimeDelta() * (1 - min(WaitingSpeedXMax * abs(Object.Variable(__SmoothCamera.ObjectX[1]) - Object.Variable(__SmoothCamera.ObjectX[0])), WaitingSpeedYMax * abs(Object.Variable(__SmoothCamera.ObjectY[1]) - Object.Variable(__SmoothCamera.ObjectY[0]))) / (Object.Variable(__SmoothCamera.ObjectTime[1]) - Object.Variable(__SmoothCamera.ObjectTime[0]))))" ] @@ -55848,22 +56025,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDelayedCenterX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DelayedCenterX", "=", "lerp(Object.Variable(__SmoothCamera.ObjectX[1]), Object.Variable(__SmoothCamera.ObjectX[0]), ((TimeFromStart() - Object.Behavior::CurrentDelay()) - Object.Variable(__SmoothCamera.ObjectTime[1])) / (Object.Variable(__SmoothCamera.ObjectTime[0]) - Object.Variable(__SmoothCamera.ObjectTime[1])))" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyDelayedCenterY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DelayedCenterY", "=", "lerp(Object.Variable(__SmoothCamera.ObjectY[1]), Object.Variable(__SmoothCamera.ObjectY[0]), ((TimeFromStart() - Object.Behavior::CurrentDelay()) - Object.Variable(__SmoothCamera.ObjectTime[1])) / (Object.Variable(__SmoothCamera.ObjectTime[0]) - Object.Variable(__SmoothCamera.ObjectTime[1])))" ] @@ -55954,11 +56129,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraDelayCatchUpSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraDelayCatchUpSpeed", "=", "CameraExtraDelay / CameraDelayCatchUpDuration" ] @@ -56000,11 +56174,10 @@ }, { "type": { - "value": "SmoothCamera::SmoothCamera::PropertyCameraExtraDelay" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraExtraDelay", ">", "0" ] @@ -56013,11 +56186,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyCameraExtraDelay" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CameraExtraDelay", "=", "max(0, CameraExtraDelay -CameraDelayCatchUpSpeed * TimeDelta())" ] @@ -56162,11 +56334,10 @@ "conditions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::PropertyWaitingEnd" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "WaitingEnd", ">", "TimeFromStart()" ] @@ -56395,22 +56566,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastedX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastedX", "=", "DelayedCenterX" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastedY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastedY", "=", "DelayedCenterY" ] @@ -56490,22 +56659,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryMeanX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryMeanX", "=", "0" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -56519,22 +56686,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryMeanX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryMeanX", "+", "Object.Variable(__SmoothCamera.ForecastHistoryX[Index])" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -56547,11 +56712,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryMeanX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryMeanX", "/", "Object.VariableChildCount(__SmoothCamera.ForecastHistoryX)" ] @@ -56576,22 +56740,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryMeanY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryMeanY", "=", "0" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -56605,22 +56767,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryMeanY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryMeanY", "+", "Object.Variable(__SmoothCamera.ForecastHistoryY[Index])" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -56633,11 +56793,10 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryMeanY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryMeanY", "/", "Object.VariableChildCount(__SmoothCamera.ForecastHistoryY)" ] @@ -56691,44 +56850,40 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryVarianceX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryVarianceX", "=", "0" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryVarianceY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryVarianceY", "=", "0" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryCovariance" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryCovariance", "=", "0" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -56742,44 +56897,40 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryVarianceX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryVarianceX", "+", "pow(Object.Variable(__SmoothCamera.ForecastHistoryX[Index]) - ForecastHistoryMeanX, 2)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryVarianceY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryVarianceY", "+", "pow(Object.Variable(__SmoothCamera.ForecastHistoryY[Index]) - ForecastHistoryMeanY, 2)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryCovariance" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryCovariance", "+", "(Object.Variable(__SmoothCamera.ForecastHistoryX[Index]) - ForecastHistoryMeanX)\n*\n(Object.Variable(__SmoothCamera.ForecastHistoryY[Index]) - ForecastHistoryMeanY)" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -56830,22 +56981,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastedX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastedX", "=", "DelayedCenterX" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastedY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastedY", "=", "DelayedCenterY" ] @@ -56924,22 +57073,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryLinearA" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryLinearA", "=", "ForecastHistoryCovariance / ForecastHistoryVarianceX" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryLinearB" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryLinearB", "=", "ForecastHistoryMeanY - ForecastHistoryLinearA * ForecastHistoryMeanX" ] @@ -57026,22 +57173,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryLinearA" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryLinearA", "=", "ForecastHistoryCovariance / ForecastHistoryVarianceY" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastHistoryLinearB" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastHistoryLinearB", "=", "ForecastHistoryMeanX - ForecastHistoryLinearA * ForecastHistoryMeanY" ] @@ -57112,33 +57257,30 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "ProjectedOldestX" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedOldestX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedOldestX", "=", "ProjectedOldestY" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedOldestY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedOldestY", "=", "Index" ] @@ -57151,33 +57293,30 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "ProjectedNewestX" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedNewestX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedNewestX", "=", "ProjectedNewestY" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedNewestY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedNewestY", "=", "Index" ] @@ -57238,22 +57377,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastedX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastedX", "=", "ProjectedNewestX + ( ProjectedNewestX - ProjectedOldestX) * Object.Behavior::ForecastTimeRatio()" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyForecastedY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ForecastedY", "=", "ProjectedNewestY + ( ProjectedNewestY - ProjectedOldestY) * Object.Behavior::ForecastTimeRatio()" ] @@ -57333,22 +57470,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedNewestX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedNewestX", "=", "(NewestX + (NewestY - ForecastHistoryLinearB) * ForecastHistoryLinearA) / (1 + pow(ForecastHistoryLinearA, 2))" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedNewestY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedNewestY", "=", "NewestY + (NewestX * ForecastHistoryLinearA - NewestY \n+ ForecastHistoryLinearB) / (1 + pow(ForecastHistoryLinearA, 2))" ] @@ -57361,22 +57496,20 @@ "actions": [ { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedOldestX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedOldestX", "=", "(OldestX + (OldestY - ForecastHistoryLinearB) * ForecastHistoryLinearA) / (1 + pow(ForecastHistoryLinearA, 2))" ] }, { "type": { - "value": "SmoothCamera::SmoothCamera::SetPropertyProjectedOldestY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ProjectedOldestY", "=", "OldestY + (OldestX * ForecastHistoryLinearA - OldestY \n+ ForecastHistoryLinearB) / (1 + pow(ForecastHistoryLinearA, 2))" ] @@ -57958,6 +58091,7 @@ "fullName": "Smooth platformer camera", "name": "SmoothPlatformerCamera", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -58334,12 +58468,13 @@ "category": "Movement", "extensionNamespace": "", "fullName": "Boids movement", + "gdevelopVersion": ">=5.5.222", "helpPath": "/extensions/boids-movement/details/", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8cGF0aCBkPSJNMjkuMywxMC4xYy0wLjQtMC4xLTAuOCwwLTEuMSwwLjNsLTMuMiw0Yy0xLjctMi01LjktNi40LTExLTYuNGMtMC4yLDAtMC4zLDAtMC41LDBjMS40LDIuNCwyLjEsNS4xLDIuMSw4DQoJCWMwLDIuOC0wLjcsNS42LTIuMSw4YzAuMiwwLDAuMywwLDAuNSwwYzUuMSwwLDkuMy00LjMsMTEtNi40bDMuMiw0YzAuMiwwLjIsMC41LDAuNCwwLjgsMC40YzAuMSwwLDAuMiwwLDAuMy0wLjENCgkJYzAuNC0wLjEsMC43LTAuNSwwLjctMC45VjExQzMwLDEwLjYsMjkuNywxMC4yLDI5LjMsMTAuMXoiLz4NCgk8cGF0aCBkPSJNMTEuNCw4LjRjLTUuMiwxLjUtOSw2LjgtOS4yLDdjLTAuMiwwLjMtMC4yLDAuOCwwLDEuMmMwLjIsMC4zLDQsNS42LDkuMiw3YzEuNS0yLjMsMi4yLTQuOSwyLjItNy42DQoJCUMxMy42LDEzLjMsMTIuOCwxMC42LDExLjQsOC40eiBNMTAsMTZjMCwwLjYtMC40LDEtMSwxcy0xLTAuNC0xLTF2LTJjMC0wLjYsMC40LTEsMS0xczEsMC40LDEsMVYxNnoiLz4NCjwvZz4NCjwvc3ZnPg0K", "name": "BoidsMovement", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Restaurant/Restaurant_restaurant_seafood_animal_fish.svg", "shortDescription": "Simulates flocks movement.", - "version": "0.3.2", + "version": "0.4.1", "description": [ "Simulates swarms or flocks movement following the separation, alignment, cohesion principles. The flock can be attracted to a location or avoid some obstacles.", "", @@ -59722,11 +59857,12 @@ "conditions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::PropertyShouldRotate" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "ShouldRotate", + "True", + "" ] } ], @@ -59812,11 +59948,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertyMaxSpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxSpeed", "=", "Value" ] @@ -59899,11 +60034,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertyMaxAcceleration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxAcceleration", "=", "Value" ] @@ -59986,11 +60120,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertyCohesionRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CohesionRadius", "=", "Value" ] @@ -60073,11 +60206,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertyAlignmentRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "AlignmentRadius", "=", "Value" ] @@ -60160,11 +60292,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertySeparationRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "SeparationRadius", "=", "Value" ] @@ -60247,11 +60378,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertyCohesionWeight" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CohesionWeight", "=", "Value" ] @@ -60334,11 +60464,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertyAlignmentWeight" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "AlignmentWeight", "=", "Value" ] @@ -60421,11 +60550,10 @@ "actions": [ { "type": { - "value": "BoidsMovement::BoidsMovement::SetPropertySeparationWeight" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "SeparationWeight", "=", "Value" ] @@ -60482,6 +60610,7 @@ "description": "", "group": "Movement", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "ShouldRotate" }, { @@ -60492,6 +60621,7 @@ "description": "", "group": "Sight", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "CohesionRadius" }, { @@ -60502,6 +60632,7 @@ "description": "", "group": "Sight", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "AlignmentRadius" }, { @@ -60512,6 +60643,7 @@ "description": "", "group": "Sight", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "SeparationRadius" }, { @@ -60522,6 +60654,7 @@ "description": "", "group": "Decision", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "CohesionWeight" }, { @@ -60532,6 +60665,7 @@ "description": "", "group": "Decision", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "AlignmentWeight" }, { @@ -60542,6 +60676,7 @@ "description": "", "group": "Decision", "extraInformation": [], + "quickCustomizationVisibility": "hidden", "name": "SeparationWeight" }, { @@ -60553,6 +60688,7 @@ "group": "", "extraInformation": [], "advanced": true, + "quickCustomizationVisibility": "hidden", "name": "CollisionLayer" } ], @@ -60566,12 +60702,13 @@ "category": "Visual effect", "extensionNamespace": "", "fullName": "Rolling counter", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNvcnQtbnVtZXJpYy12YXJpYW50IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcuNzgsN0M5LjA4LDcuMDQgMTAsNy41MyAxMC41Nyw4LjQ2QzExLjEzLDkuNCAxMS40MSwxMC41NiAxMS4zOSwxMS45NUMxMS40LDEzLjUgMTEuMDksMTQuNzMgMTAuNSwxNS42MkM5Ljg4LDE2LjUgOC45NSwxNi45NyA3LjcxLDE3QzYuNDUsMTYuOTYgNS41NCwxNi41IDQuOTYsMTUuNTZDNC4zOCwxNC42MyA0LjA5LDEzLjQ1IDQuMDksMTJDNC4wOSwxMC41NSA0LjM5LDkuMzYgNSw4LjQ0QzUuNTksNy41IDYuNSw3LjA0IDcuNzgsN003Ljc1LDguNjNDNy4zMSw4LjYzIDYuOTYsOC45IDYuNyw5LjQ2QzYuNDQsMTAgNi4zMiwxMC44NyA2LjMyLDEyQzYuMzEsMTMuMTUgNi40NCwxNCA2LjY5LDE0LjU0QzYuOTUsMTUuMSA3LjMxLDE1LjM3IDcuNzcsMTUuMzdDOC42OSwxNS4zNyA5LjE2LDE0LjI0IDkuMTcsMTJDOS4xNyw5Ljc3IDguNyw4LjY1IDcuNzUsOC42M00xMy4zMywxN1YxNS4yMkwxMy43NiwxNS4yNEwxNC4zLDE1LjIyTDE1LjM0LDE1LjAzQzE1LjY4LDE0LjkyIDE2LDE0Ljc4IDE2LjI2LDE0LjU4QzE2LjU5LDE0LjM1IDE2Ljg2LDE0LjA4IDE3LjA3LDEzLjc2QzE3LjI5LDEzLjQ1IDE3LjQ0LDEzLjEyIDE3LjUzLDEyLjc4TDE3LjUsMTIuNzdDMTcuMDUsMTMuMTkgMTYuMzgsMTMuNCAxNS40NywxMy40MUMxNC42MiwxMy40IDEzLjkxLDEzLjE1IDEzLjM0LDEyLjY1QzEyLjc3LDEyLjE1IDEyLjUsMTEuNDMgMTIuNDYsMTAuNUMxMi40Nyw5LjUgMTIuODEsOC42OSAxMy40Nyw4LjAzQzE0LjE0LDcuMzcgMTUsNy4wMyAxNi4xMiw3QzE3LjM3LDcuMDQgMTguMjksNy40NSAxOC44OCw4LjI0QzE5LjQ3LDkgMTkuNzYsMTAgMTkuNzYsMTEuMTlDMTkuNzUsMTIuMTUgMTkuNjEsMTMgMTkuMzIsMTMuNzZDMTkuMDMsMTQuNSAxOC42NCwxNS4xMyAxOC4xMiwxNS42NEMxNy42NiwxNi4wNiAxNy4xMSwxNi4zOCAxNi40NywxNi42MUMxNS44MywxNi44MyAxNS4xMiwxNi45NiAxNC4zNCwxN0gxMy4zM00xNi4wNiw4LjYzQzE1LjY1LDguNjQgMTUuMzIsOC44IDE1LjA2LDkuMTFDMTQuODEsOS40MiAxNC42OCw5Ljg0IDE0LjY4LDEwLjM2QzE0LjY4LDEwLjggMTQuOCwxMS4xNiAxNS4wMywxMS40NkMxNS4yNywxMS43NyAxNS42MywxMS45MiAxNi4xMSwxMS45M0MxNi40MywxMS45MyAxNi43LDExLjg2IDE2LjkyLDExLjc0QzE3LjE0LDExLjYxIDE3LjMsMTEuNDYgMTcuNDEsMTEuMjhDMTcuNSwxMS4xNyAxNy41MywxMC45NyAxNy41MywxMC43MUMxNy41NCwxMC4xNiAxNy40Myw5LjY5IDE3LjIsOS4yOEMxNi45Nyw4Ljg3IDE2LjU5LDguNjUgMTYuMDYsOC42M005LjI1LDVMMTIuNSwxLjc1TDE1Ljc1LDVIOS4yNU0xNS43NSwxOUwxMi41LDIyLjI1TDkuMjUsMTlIMTUuNzVaIiAvPjwvc3ZnPg==", "name": "RollingCounter", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/e509cccd7fb426978c4a79b639670f624f773a886848d288a12be5c28dd7d380_sort-numeric-variant.svg", "shortDescription": "Smoothly change a counter value in a text object.", - "version": "1.0.0", + "version": "1.1.1", "description": "Smoothly change a counter value in a text object.", "origin": { "identifier": "RollingCounter", @@ -60595,6 +60732,7 @@ "fullName": "Rolling counter", "name": "RollingCounter", "objectType": "", + "quickCustomizationVisibility": "hidden", "eventsFunctions": [ { "fullName": "", @@ -60608,11 +60746,10 @@ "actions": [ { "type": { - "value": "RollingCounter::RollingCounter::SetPropertyDisplayedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DisplayedValue", "+", "Speed * TimeDelta() * LayerTimeScale(Object.Layer())" ] @@ -60636,11 +60773,10 @@ "actions": [ { "type": { - "value": "RollingCounter::RollingCounter::SetPropertyDisplayedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DisplayedValue", "=", "CounterValue" ] @@ -60733,33 +60869,30 @@ "actions": [ { "type": { - "value": "RollingCounter::RollingCounter::SetPropertyDisplayedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DisplayedValue", "=", "CounterValue" ] }, { "type": { - "value": "RollingCounter::RollingCounter::SetPropertyCounterValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "CounterValue", "=", "Value" ] }, { "type": { - "value": "RollingCounter::RollingCounter::SetPropertySpeed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Speed", "=", "(CounterValue - DisplayedValue) / Duration" ] @@ -60795,11 +60928,10 @@ "actions": [ { "type": { - "value": "RollingCounter::RollingCounter::SetPropertyDisplayedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "DisplayedValue", "=", "CounterValue" ]