Skip to content

Commit 081f0fe

Browse files
authored
[Community] [Curved movement] Add expressions for the origin position of a speed-based movement (#936)
1 parent 29cf8d3 commit 081f0fe

File tree

1 file changed

+88
-2
lines changed

1 file changed

+88
-2
lines changed

extensions/community/CurvedMovement.json

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "CurvedMovement",
99
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Graphic Design/Graphic Design_bezier_curve.svg",
1010
"shortDescription": "Move objects on curved paths.",
11-
"version": "1.0.3",
11+
"version": "1.0.4",
1212
"description": [
1313
"This extension allows to move objects on Bézier curve paths.",
1414
"- Paths can be built dynamically or from predetermined paths in SVG format.",
@@ -20,7 +20,11 @@
2020
"- Move enemies that follow a pattern",
2121
"- Animate decorations",
2222
"",
23-
"A collection of [small examples](https://editor.gdevelop.io/?project=example://curved-movement) show how to use this extension."
23+
"A collection of [small examples](https://editor.gdevelop.io/?project=example://curved-movement) shows how to use this extension.",
24+
"",
25+
"2 examples use it:",
26+
"- a 3D racing game ([open the project online](https://editor.gdevelop.io/?project=example://3d-racing-game))",
27+
"- a Zuma-like ([open the project online](https://editor.gdevelop.io/?project=example://smoothy))"
2428
],
2529
"origin": {
2630
"identifier": "CurvedMovement",
@@ -7499,6 +7503,88 @@
74997503
}
75007504
],
75017505
"objectGroups": []
7506+
},
7507+
{
7508+
"description": "Return the path origin on X axis of the object.",
7509+
"fullName": "Path origin X",
7510+
"functionType": "Expression",
7511+
"group": "Movement on a curve (speed-based) configuration",
7512+
"name": "PathOriginX",
7513+
"sentence": "the path origin on X axis",
7514+
"events": [
7515+
{
7516+
"type": "BuiltinCommonInstructions::Standard",
7517+
"conditions": [],
7518+
"actions": [
7519+
{
7520+
"type": {
7521+
"value": "SetReturnNumber"
7522+
},
7523+
"parameters": [
7524+
"Object.Behavior::PropertyPathOriginX()"
7525+
]
7526+
}
7527+
]
7528+
}
7529+
],
7530+
"expressionType": {
7531+
"type": "expression"
7532+
},
7533+
"parameters": [
7534+
{
7535+
"description": "Object",
7536+
"name": "Object",
7537+
"type": "object"
7538+
},
7539+
{
7540+
"description": "Behavior",
7541+
"name": "Behavior",
7542+
"supplementaryInformation": "CurvedMovement::SpeedPathMovement",
7543+
"type": "behavior"
7544+
}
7545+
],
7546+
"objectGroups": []
7547+
},
7548+
{
7549+
"description": "Return the path origin on Y axis of the object.",
7550+
"fullName": "Path origin Y",
7551+
"functionType": "Expression",
7552+
"group": "Movement on a curve (speed-based) configuration",
7553+
"name": "PathOriginY",
7554+
"sentence": "the path origin on Y axis",
7555+
"events": [
7556+
{
7557+
"type": "BuiltinCommonInstructions::Standard",
7558+
"conditions": [],
7559+
"actions": [
7560+
{
7561+
"type": {
7562+
"value": "SetReturnNumber"
7563+
},
7564+
"parameters": [
7565+
"Object.Behavior::PropertyPathOriginY()"
7566+
]
7567+
}
7568+
]
7569+
}
7570+
],
7571+
"expressionType": {
7572+
"type": "expression"
7573+
},
7574+
"parameters": [
7575+
{
7576+
"description": "Object",
7577+
"name": "Object",
7578+
"type": "object"
7579+
},
7580+
{
7581+
"description": "Behavior",
7582+
"name": "Behavior",
7583+
"supplementaryInformation": "CurvedMovement::SpeedPathMovement",
7584+
"type": "behavior"
7585+
}
7586+
],
7587+
"objectGroups": []
75027588
}
75037589
],
75047590
"propertyDescriptors": [

0 commit comments

Comments
 (0)