A Godot 4 plugin to easily create and animate slides
DricomDragon f700017734 :memo: Explain how to use the export feature | 1 mēnesi atpakaļ | |
---|---|---|
doc | 1 gadu atpakaļ | |
godot | 1 mēnesi atpakaļ | |
.gitattributes | 1 gadu atpakaļ | |
.gitignore | 1 mēnesi atpakaļ | |
LICENSE.txt | 1 gadu atpakaļ | |
README.md | 1 mēnesi atpakaļ |
A plugin to easily create and animate slides in Godot 4.
This plugin is small, stable and adaptable.
This plugin was initially developed for my talk about Godot for the JDLL event. This complete project is also publicly available. The animated gif below shows how it works.
Leverage the Godot scene system by providing a custom Slide node to use as root for your slide scene. Then you are free to add anything in your slide scene. Don't forget to include it as a child of your Show node in your main scene.
A custom Camera2D node named Focus handles transitions, tweening position and scale. Transition can be customized via the Focus node.
The Focus is auto-detected by the Show node, and must rely at the same level in your scene tree.
You can customize those events by providing your custom action names in the Show node.
If you want to target a specific slide you see, juste click on it with your mouse.
This repository contains a minimalist example made with Godot 4.0.2. You can clone this project and open the godot
folder with Godot 4+.
Basic node arrangement in your main scene.
Add or merge the addons
folder with the one at the top of your own project.
Check the official documentation about installing a plugin to have more details.
Create your main global scene.
Instantiate the Focus node, playing the role of a custom Camera2D.
Instantiate the Show node, that must be next to the Focus node that will be auto-detected.
To create and edit a slide, create a new scene with the Slide node as root node. You can add any Node in your slide scene, like a Label or a Sprite2D.
To add the slide to your show, instantiate it in your main scene as a child of your Show node. Put only Slide scenes as children of the Show. The order of the children determines the sequence of slides.
You are ready to run your own slideshow ! :tada:
Run your slide show!
Default controls :
ui_accept
: go smoothly to next slideui_right
: go to next slide without transitionui_left
: go to previous slide without transitionui_cancel
: go to the starting slideIf you want to specify a starting slide, you can specify its index via the inspector. Can be useful to experiment parts of your slideshow.
To reveal slides on focus, check the hide slides
in the Show. If you want some slides to remain always visible, chek always visible
on the corresponding slide.
You can create your own actions, and give them to the Show node via the input setup
section in the inspector.
The plugin leverages the Godot Movie Maker to easily export every slides to png files.
This feature can be useful when you need to share your work without the hassle to download your project and set up Godot. The exported slides can be used as a backup, or can be cliped into a video for instance.
../dist/export/slide.png
;Show
will quickly review every slide, and quit when the last one is reached ;Note : the resolution of your exported slides are related to the resolution set up in your project.
Warning : pay attention to the window resolution, especially if you are using a tiling windows manager!
The export automation is enabled with two toggles in the Show
node, in the Export section :
Note : the export settings are effective only when the Movie Maker mode is enabled.
This plugin is free software licensed under the MIT license, the same license used by the Godot engine itself.
See LICENSE.txt.