-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(text): New features for text auto advance and delays before cont…
…inue
- Loading branch information
Showing
10 changed files
with
167 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Narrate command | ||
|
||
The `narrate` command is used to let the "game" talk instead of a character. It is similar to the `talk` command, but takes no character or pose option. | ||
|
||
It is also the command used when the shorthand `text` command syntax is used (when typing a string on a line directly with no command). | ||
|
||
Syntax: | ||
|
||
- `narrate "text" [delay] [autoadvance]` | ||
- Or directly: `"text"` (delay/autoadance not possible with the shorthand syntax) | ||
|
||
- **text**: The actual line of dialogue to speak | ||
- **delay [optional]**: Delay in miliseconds before the continue button appears or the next line of dialogue is spoken | ||
- **autoadvance [optional, true|false]**: If true, the dialogue will automatically advance to the next line after the delay. If false (or not there), the continue button will appear after the delay | ||
|
||
## Example | ||
|
||
```narrat | ||
test_text_autoadvance: | ||
narrate "Hi!" | ||
narrate "with delay " 2000 | ||
narrate "With delay and auto advance waiting for text to print" 200 true | ||
narrate "With delay and auto advance not waiting for text to print" 0 true | ||
narrate "This is a normal line" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
packages/narrat/src/examples/default/scripts/default.narrat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters