davy
November 6, 2022, 8:16pm
14
I uploaded a new version that fixes the L and V commands and adds a 2nd behavior that uses acceleration instead of tweens.
The example contains a new scene with a train that follows a closed path.
GDevelopApp:main
← GDevelopApp:extension/pampogokiraly/534
opened 04:26PM - 16 Aug 22 UTC
### Description
Adds a behavior that allows objects to move smoothly on (bézi… er) curves.
Here is a short video of it in action
https://user-images.githubusercontent.com/66256867/184871120-5b4aa7b1-dc2f-46b0-9c94-c0d29b5d680b.mp4
The easings are still missing from all four non-behavior, the "AppendPath", and the "ChangeEasing" events. But Davy said that he/she will help with with them, hopefully with some text editing black magic. Doing this manually would be painful.
### How to use the extension
Add the behavior to the object.
Use the action "Append a path" to add a new path to the object. The control points control the arc of the curve.
Use the above action multiple times to add multiple paths to the object. All of them will be played one by one.
### Checklist
- [X] I've followed all of [the best practices](http://wiki.compilgames.net/doku.php/gdevelop5/extensions/best-practices).
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
### What tier of review do you aim for your extension?
Reviewed
### Example file
[Version1.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/9350733/Version1.zip)
### Extension file
[CurvedMovement.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/9352730/CurvedMovement.zip)