diff --git a/extensions/community/CoordinateExchange.json b/extensions/community/CoordinateExchange.json deleted file mode 100644 index 5c1269028..000000000 --- a/extensions/community/CoordinateExchange.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "author": "", - "category": "General", - "extensionNamespace": "", - "fullName": "Exchange coordinates to another layer", - "helpPath": "", - "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQoJLnN0MXtmaWxsOm5vbmU7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCjwvc3R5bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjMuMSw1TDIyLDNoLTNjLTEuMSwwLTIsMC45LTIsMnYwdjN2M2MwLDEuMSwwLjksMiwyLDJoOGMxLjEsMCwyLTAuOSwyLTJWN2MwLTEuMS0wLjktMi0yLTJIMjMuMXoiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik05LjEsMjFMOCwxOUg1Yy0xLjEsMC0yLDAuOS0yLDJ2MHYzdjNjMCwxLjEsMC45LDIsMiwyaDhjMS4xLDAsMi0wLjksMi0ydi00YzAtMS4xLTAuOS0yLTItMkg5LjF6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTYsMjZjNS41LDAsMTAtNC41LDEwLTEwbDMsNCIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTE2LDZDMTAuNSw2LDYsMTAuNSw2LDE2bC0zLTQiLz4NCjwvc3ZnPg0K", - "name": "CoordinateExchange", - "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/Files and Folders/74b697fdb2d38d4341d1c9f2699d083c42f34ef4bdca8235f7d6d039c614fc22_Files and Folders_folder_exchange.svg", - "shortDescription": "Exchange coordinates from layer to another.", - "version": "1.0.0", - "description": [ - "# Uses", - "Useful if the user wants to sync positions from different layers.", - "", - "# Features", - "- Extension expression.", - "- Takes into account camera X, Y position.", - "- Takes into account camera zoom level.", - "- Takes into account scene width and height.", - "", - "# Example", - "Object A (on Base layer).", - "Object B (on UI layer).", - "", - "You can change Object A position set to Object B position, using the extension expression.", - "", - "**Event**", - "Condition: -", - "", - "Action: ", - "Change ObjectA Xposition set to **CoordinateExchange::ExchangeXPosition(ObjectB.X(), \"Base layer\")**", - "", - "Change ObjectA Yposition set to **CoordinateExchange::ExchangeYPosition(ObjectB.Y(), \"Base layer\")**", - "", - "and now, ObjectA, UI layer, will always be on top of ObjectB, Base layer X, Y position.", - "" - ], - "tags": [ - "exchange", - "coordinates", - "position", - "change" - ], - "authorIds": [ - "IRIhkkTTl2UHhfjrLTTH5GYwkYu1" - ], - "dependencies": [], - "eventsFunctions": [ - { - "description": "Return the X position on the selected layer.", - "fullName": "Exchange X position", - "functionType": "Expression", - "name": "ExchangeXPosition", - "sentence": "", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "((Xposition-CameraCenterX(Layer))*CameraZoom(Layer))+(SceneWindowWidth()/2)" - ] - } - ] - } - ], - "expressionType": { - "type": "expression" - }, - "parameters": [ - { - "description": "Exchange this X position", - "name": "Xposition", - "type": "expression" - }, - { - "description": "Object layer", - "name": "Layer", - "type": "layer" - } - ], - "objectGroups": [] - }, - { - "description": "Return the Y position on the selected layer.", - "fullName": "Exchange Y position", - "functionType": "Expression", - "name": "ExchangeYPosition", - "sentence": "", - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "((Yposition-CameraCenterY(Layer))*CameraZoom(Layer))+(SceneWindowHeight()/2)" - ] - } - ] - } - ], - "expressionType": { - "type": "expression" - }, - "parameters": [ - { - "description": "Exchange this Y position", - "name": "Yposition", - "type": "expression" - }, - { - "description": "Object layer", - "name": "Layer", - "type": "layer" - } - ], - "objectGroups": [] - } - ], - "eventsBasedBehaviors": [], - "eventsBasedObjects": [] -} \ No newline at end of file