-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Added world specific cinematic guide
- Loading branch information
1 parent
12fb475
commit b6329b1
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
documentation/docs/docs/03-creating-stories/02-cinematics/05-world-specific.mdx
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,39 @@ | ||
--- | ||
dificulty: Normal | ||
--- | ||
|
||
import Player from "@site/src/components/Player"; | ||
import Image from "@site/src/components/Image"; | ||
import EntrySearch from "@site/src/components/EntrySearch"; | ||
import ActionButton from "@site/src/components/ActionButtons"; | ||
|
||
# World Specific Cinematics | ||
:::info[Before starting] | ||
It's best to first read [Cinematics](./index.mdx) before starting this tutorial. | ||
::: | ||
|
||
In this tutorial, you will learn how to create world-specific cinematics. This feature allows you to create 1 cinematic that can be used in multiple worlds. | ||
|
||
## Creating the dynamic variable | ||
First, we need to create a dynamic variable. This variable will be used to determine which world the player is in. To do this please follow the these steps: | ||
1. Go to your camera cinematic and click on a segment | ||
2. Inside the segment at 1 of your paths click on the <ActionButton button='dynamic-variable'/> icon. | ||
3. Search for `Player World Position Variable` and click on it to add it to your segment. | ||
|
||
<EntrySearch entryName='player_world_position_variable'/> | ||
|
||
### Configuring the dynamic variable | ||
:::warning[repeat] | ||
Repeat this step for all paths inside the camera cinematic segment. | ||
::: | ||
Now inside the inspector of the **camera cinematic segment** you can set the coordinates of your cinematic. | ||
<Image img={require("../../assets/cinematics/world-specific-player-variable.png")} alt="Configuring the dynamic variable" width={400} /> | ||
#### Where is the world value? | ||
Good question, the world value is gone because we are using the `Player World Position Variable` to determine the world.\ | ||
The world the player is in will be the world used. | ||
|
||
## Result | ||
:::info[Entity] | ||
For this guide we used an entity cinematic from the [entities](./03-entities.mdx) tutorial and an [actionbar dialogue](./01-dialogue.mdx). This is to demonstration the use of the dynamic variable. | ||
::: | ||
<Player url={require("../../assets/cinematics/world-specific.webm").default} /> |
Binary file added
BIN
+34.3 KB
documentation/docs/docs/assets/cinematics/world-specific-player-variable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.