Example of how to do moving platforms in GDScript
The platform scene has a number of exported variables which can be used to setup the platform. Very much a work in progress. PRs welcomed.
- Add the platform scene to your main scene
- Right click the platform scene in the outline and make children editable
- Move the start position and end position to where you want the platform to go
- Set the mode and total time for the platform
Auto: Platform moves to and from the start and end positions automatically without stopping
Manual: Platform will stop when reaching the target node
Is platform heading towards the start position or towards the end position - in case you muddle then up in the editor
Whether the platform is initially active
[x] Add signals to enable platform start/stop [ ] Add tweening options [ ] Non-linear paths???