Skip to content

ee0pdt/godot-platforms-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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???

About

Example of how to do moving platforms in GDScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published