Skip to content

Commit 2238f4b

Browse files
committed
[Community] [Curved movement] Fix objects being stuck at the start or
the end of the path
1 parent f31bbb7 commit 2238f4b

File tree

1 file changed

+58
-26
lines changed

1 file changed

+58
-26
lines changed

extensions/community/CurvedMovement.json

Lines changed: 58 additions & 26 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.2",
11+
"version": "1.0.3",
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.",
@@ -5105,8 +5105,7 @@
51055105
"textG": 0,
51065106
"textR": 0
51075107
},
5108-
"comment": "Update speed",
5109-
"comment2": ""
5108+
"comment": "Update speed"
51105109
},
51115110
{
51125111
"type": "BuiltinCommonInstructions::Standard",
@@ -5188,8 +5187,7 @@
51885187
"textG": 0,
51895188
"textR": 0
51905189
},
5191-
"comment": "Update the position on the path (the current length) with a Verlet integration.",
5192-
"comment2": ""
5190+
"comment": "Update the position on the path (the current length) with a Verlet integration."
51935191
},
51945192
{
51955193
"type": "BuiltinCommonInstructions::Standard",
@@ -5219,8 +5217,7 @@
52195217
"textG": 0,
52205218
"textR": 0
52215219
},
5222-
"comment": "It's useful to know which way to look at when the speed reached 0.",
5223-
"comment2": ""
5220+
"comment": "It's useful to know which way to look at when the speed reached 0."
52245221
},
52255222
{
52265223
"type": "BuiltinCommonInstructions::Standard",
@@ -5501,8 +5498,7 @@
55015498
"textG": 0,
55025499
"textR": 0
55035500
},
5504-
"comment": "When the path is close or empty, there is no way to reach a destination",
5505-
"comment2": ""
5501+
"comment": "When the path is close or empty, there is no way to reach a destination"
55065502
},
55075503
{
55085504
"type": "BuiltinCommonInstructions::Standard",
@@ -6260,13 +6256,32 @@
62606256
},
62616257
{
62626258
"type": {
6263-
"value": "CurvedMovement::SpeedPathMovement::PropertySpeed"
6259+
"value": "BuiltinCommonInstructions::Or"
62646260
},
6265-
"parameters": [
6266-
"Object",
6267-
"Behavior",
6268-
">",
6269-
"0"
6261+
"parameters": [],
6262+
"subInstructions": [
6263+
{
6264+
"type": {
6265+
"value": "CurvedMovement::SpeedPathMovement::PropertySpeed"
6266+
},
6267+
"parameters": [
6268+
"Object",
6269+
"Behavior",
6270+
">",
6271+
"0"
6272+
]
6273+
},
6274+
{
6275+
"type": {
6276+
"value": "CurvedMovement::SpeedPathMovement::PropertyAcceleration"
6277+
},
6278+
"parameters": [
6279+
"Object",
6280+
"Behavior",
6281+
">",
6282+
"0"
6283+
]
6284+
}
62706285
]
62716286
}
62726287
]
@@ -6290,13 +6305,32 @@
62906305
},
62916306
{
62926307
"type": {
6293-
"value": "CurvedMovement::SpeedPathMovement::PropertySpeed"
6308+
"value": "BuiltinCommonInstructions::Or"
62946309
},
6295-
"parameters": [
6296-
"Object",
6297-
"Behavior",
6298-
"<",
6299-
"0"
6310+
"parameters": [],
6311+
"subInstructions": [
6312+
{
6313+
"type": {
6314+
"value": "CurvedMovement::SpeedPathMovement::PropertySpeed"
6315+
},
6316+
"parameters": [
6317+
"Object",
6318+
"Behavior",
6319+
"<",
6320+
"0"
6321+
]
6322+
},
6323+
{
6324+
"type": {
6325+
"value": "CurvedMovement::SpeedPathMovement::PropertyAcceleration"
6326+
},
6327+
"parameters": [
6328+
"Object",
6329+
"Behavior",
6330+
"<",
6331+
"0"
6332+
]
6333+
}
63006334
]
63016335
}
63026336
]
@@ -6684,7 +6718,7 @@
66846718
"parameters": [
66856719
"ShapePainter",
66866720
"=",
6687-
"1"
6721+
"ShapePainter.OutlineSize()"
66886722
]
66896723
}
66906724
]
@@ -7014,8 +7048,7 @@
70147048
"textG": 0,
70157049
"textR": 0
70167050
},
7017-
"comment": "When the object reaches the target, it must stay on the last repetition end and not at the start of a new one.",
7018-
"comment2": ""
7051+
"comment": "When the object reaches the target, it must stay on the last repetition end and not at the start of a new one."
70197052
},
70207053
{
70217054
"type": "BuiltinCommonInstructions::Standard",
@@ -7105,8 +7138,7 @@
71057138
"textG": 0,
71067139
"textR": 0
71077140
},
7108-
"comment": "When the object reaches the target, it must stay on the last repetition end and not at the start of a new one.",
7109-
"comment2": ""
7141+
"comment": "When the object reaches the target, it must stay on the last repetition end and not at the start of a new one."
71107142
},
71117143
{
71127144
"type": "BuiltinCommonInstructions::Standard",

0 commit comments

Comments
 (0)