Character setting

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
eksebra
Posts: 2
Joined: Wed May 13, 2020 9:37 am

Character setting

Post by eksebra »

In the tutorials you do not show us how to change the image of the character.may you please show me how to change the image of the character and also how to move into a new scene when press the response button.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Character setting

Post by Tony Li »

Hi,

Edit your dialogue database in the Dialogue Editor window. On the Actors tab, inspect the actor. Then assign image(s) to the actor's Portrait Sprites:

assignPortraits.png
assignPortraits.png (56.97 KiB) Viewed 359 times

If you want to change the image for a single node, use the [pic=#] markup tag. For example, to use pic #2:
  • Dialogue Text: "Oh my! [pic=2]"
To change the image for the rest of the conversation, use the SetPortrait() sequencer command.

To change scenes during a conversation, use the LoadLevel() sequencer command:
  • Dialogue Text: "Abracadabra! I'm teleporting to the Wizard's Tower!"
  • Sequence: LoadLevel(WizardTower)
eksebra
Posts: 2
Joined: Wed May 13, 2020 9:37 am

Re: Character setting

Post by eksebra »

Do you make a script and make the command loadlevel () or can you make it without a script.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Character setting

Post by Tony Li »

Without a script. In the dialogue entry node's Script field, just type: LoadLevel(sceneName)

loadLevelSequencerCommand.png
loadLevelSequencerCommand.png (3.67 KiB) Viewed 354 times

If you want the player to appear at a specific location in the new scene, you can specify it in a second parameter:

LoadLevel(Disneyland, Ticket Booth)

In the new scene, add an empty GameObject named Ticket Booth.

Add a Position Saver component to the player, and tick the 'Use Player Spawnpoint' checkbox.
Post Reply