Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 956 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 956 Bytes

Platforms

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.

How to use platform:

  1. Add the platform scene to your main scene
  2. Right click the platform scene in the outline and make children editable
  3. Move the start position and end position to where you want the platform to go
  4. Set the mode and total time for the platform

Settings:

Mode:

Auto: Platform moves to and from the start and end positions automatically without stopping

Manual: Platform will stop when reaching the target node

Target:

Is platform heading towards the start position or towards the end position - in case you muddle then up in the editor

Is Active:

Whether the platform is initially active

TODO:

[x] Add signals to enable platform start/stop [ ] Add tweening options [ ] Non-linear paths???