|
8 | 8 | "name": "CurvedMovement", |
9 | 9 | "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Graphic Design/Graphic Design_bezier_curve.svg", |
10 | 10 | "shortDescription": "Move objects on curved paths.", |
11 | | - "version": "1.0.2", |
| 11 | + "version": "1.0.3", |
12 | 12 | "description": [ |
13 | 13 | "This extension allows to move objects on Bézier curve paths.", |
14 | 14 | "- Paths can be built dynamically or from predetermined paths in SVG format.", |
|
5105 | 5105 | "textG": 0, |
5106 | 5106 | "textR": 0 |
5107 | 5107 | }, |
5108 | | - "comment": "Update speed", |
5109 | | - "comment2": "" |
| 5108 | + "comment": "Update speed" |
5110 | 5109 | }, |
5111 | 5110 | { |
5112 | 5111 | "type": "BuiltinCommonInstructions::Standard", |
|
5188 | 5187 | "textG": 0, |
5189 | 5188 | "textR": 0 |
5190 | 5189 | }, |
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." |
5193 | 5191 | }, |
5194 | 5192 | { |
5195 | 5193 | "type": "BuiltinCommonInstructions::Standard", |
|
5219 | 5217 | "textG": 0, |
5220 | 5218 | "textR": 0 |
5221 | 5219 | }, |
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." |
5224 | 5221 | }, |
5225 | 5222 | { |
5226 | 5223 | "type": "BuiltinCommonInstructions::Standard", |
|
5501 | 5498 | "textG": 0, |
5502 | 5499 | "textR": 0 |
5503 | 5500 | }, |
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" |
5506 | 5502 | }, |
5507 | 5503 | { |
5508 | 5504 | "type": "BuiltinCommonInstructions::Standard", |
|
6260 | 6256 | }, |
6261 | 6257 | { |
6262 | 6258 | "type": { |
6263 | | - "value": "CurvedMovement::SpeedPathMovement::PropertySpeed" |
| 6259 | + "value": "BuiltinCommonInstructions::Or" |
6264 | 6260 | }, |
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 | + } |
6270 | 6285 | ] |
6271 | 6286 | } |
6272 | 6287 | ] |
|
6290 | 6305 | }, |
6291 | 6306 | { |
6292 | 6307 | "type": { |
6293 | | - "value": "CurvedMovement::SpeedPathMovement::PropertySpeed" |
| 6308 | + "value": "BuiltinCommonInstructions::Or" |
6294 | 6309 | }, |
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 | + } |
6300 | 6334 | ] |
6301 | 6335 | } |
6302 | 6336 | ] |
|
6684 | 6718 | "parameters": [ |
6685 | 6719 | "ShapePainter", |
6686 | 6720 | "=", |
6687 | | - "1" |
| 6721 | + "ShapePainter.OutlineSize()" |
6688 | 6722 | ] |
6689 | 6723 | } |
6690 | 6724 | ] |
|
7014 | 7048 | "textG": 0, |
7015 | 7049 | "textR": 0 |
7016 | 7050 | }, |
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." |
7019 | 7052 | }, |
7020 | 7053 | { |
7021 | 7054 | "type": "BuiltinCommonInstructions::Standard", |
|
7105 | 7138 | "textG": 0, |
7106 | 7139 | "textR": 0 |
7107 | 7140 | }, |
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." |
7110 | 7142 | }, |
7111 | 7143 | { |
7112 | 7144 | "type": "BuiltinCommonInstructions::Standard", |
|
0 commit comments