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

Two-Key Save Yarn Dialogue 1.1.0.zip 12 kB
Feb 07, 2023
Two-Key Save Yarn Dialogue 1.0.1.zip 12 kB
Feb 07, 2023
One-Key Save Yarn Dialogue 1.4.4.zip 13 kB
Mar 08, 2023

Get GDevelop Save/Load Yarn Dialogue + Dialogue System

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.