A Godot 4 plugin to easily create and animate slides
DricomDragon 6be2056432 :fire: Remove the signal icon from screenshot | 1 rok pred | |
---|---|---|
doc | 1 rok pred | |
godot | 1 rok pred | |
.gitattributes | 1 rok pred | |
.gitignore | 1 rok pred | |
LICENSE.txt | 1 rok pred | |
README.md | 1 rok pred |
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 inspetor. 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.
This plugin is free software licensed under the MIT license, the same license used by the Godot engine itself.
See LICENSE.txt.