Optimized + One-Key System
Summary:
The dialogue system now contains a one-key system and I optimized some events wherever applicable.
You can now skip, start, continue, and end dialogue with one key. You can switch out the key for anything you want :)
If I ever encounter any bugs or if I can find/optimize my system more, I will update this post again with those updates
You will still have access to my original dialogue system with a "two-key" where skipping is a dedicated key ;)
1.0
Two-Key Original System
Update 1.0.1
Minor optimizations:
* Added comments
* Optimized some events to not run every frame
* Removed "restart" scene
* Bug (this is fixed in 1.1 and 1.4): When key is held (and it is longer than the timer set in code), it will move to the next line of dialogue or close the dialogue once text is completed
1.1
Two-Key Original System Improved
Update 1.1.0
Bug fixes and optimizations:
* Added comments
* Removed the timer for a boolean
* Fixed Bug: When key is held, it will move to the next line of dialogue or close the dialogue once text is completed
* Removed "restart" scene
1.4
One-Key System
Update 1.4.1
Mostly bug fixes and minor optimizations:
* Fixed Bug: Resetting the scene while the dialogue is running soft locks the game/ stop dialogue entirely from being accessed
* Fixed Bug: Skips don't work after options where displayed
* Fixed Bug: Skips don't work after the first set of dialogue
* Fixed Bug: Skips don't work if you haven't skipped before
* Fixed Bug: Dialogue won't close if you haven't skipped
* Fixed Bug: Dialogue won't close if you have skipped and needed to press twice
Update 1.4.2
Minor bug and minor optimizations:
* Removed "restart scene"
* Re-optimized my code + Added Comments
* Fixed Bug: If hold down the key while the dialogue runs > it can accidental skip to the next dialogue line
Update 1.4.3
Minor optimizations:
* Removed a redundant boolean (it was effectively doing nothing)
* Removed a line of code under "text" (it was effectively doing nothing)
Update 1.4.4
Minor Optimizations:
* Removed a redundant boolean
* Re-organized some code
Files
Get GDevelop Save/Load Yarn Dialogue + Dialogue System
GDevelop Save/Load Yarn Dialogue + Dialogue System
A simple project template for those who want to save/load yarn information.
Status | Released |
Author | H0ndred |
Tags | gdevelop, Project template |
Languages | English |
More posts
- One-Key System 1.5Apr 16, 2023
Leave a comment
Log in with itch.io to leave a comment.