Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion documentation/creating-timelines-in-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Dialogic.start(timeline)
var events : Array = """
Jowan (Surprised): Wow this is interesting!
- Yes
[background path="res://icon.png"]
[background arg="res://icon.png"]
[wait seconds="1"]
set MyAutoload.exitement += 20
- No
Expand All @@ -52,3 +52,4 @@ Dialogic.start(timeline)
```

*In this case, you have to follow the syntax explained in [this tutorial](timeline-text-syntax.md).*

4 changes: 2 additions & 2 deletions documentation/timeline-text-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Most events follow a shortcodes-like style:

```dtl
[background path="res://icon.png" fade="1.0"]
[background arg="res://icon.png" fade="1.0"]
```

The order of the parameters is not relevant, but they have to be separated by at least one space. All parameters, regardless of type, have to be contained in double quotation marks.
Expand Down Expand Up @@ -128,7 +128,7 @@ Timelines use TAB indentation to know what events belong to a choice or conditio
## Example timeline

```dtl
[background path="res://assets/backgrounds/dialogic_factory.png"]
[background arg="res://assets/backgrounds/dialogic_factory.png"]

join Jowan left
Jowan (excited): Hello and welcome to[portrait=confused]...[pause=0.5] Wait? What is this?
Expand Down