Question mark and Dialogue System
Posted: Sun Nov 29, 2015 3:11 pm
Hey i was wondering how to make a question mark to a character with When he have a quest and when is done to show exclamation mark above head i use RPG Kit
Support and discussion forum for Pixel Crushers products
https://www.pixelcrushers.com:443/phpbb/
Code: Select all
SetActive(MyNPC/UI/Question)
Code: Select all
SetActive(MyNPC/UI/Question, false);
SetActive(MyNPC/UI/Exclamation)
Unity's UI system doesn't provide any built-in capability to do this. Here are some options:Demonith wrote:Can u tell me how to make url text in dialogue ? when player click it to open website ?
I was thinking is there a way to make a 3d like rotation over head like Exclamation mark or Question markTony Li wrote:Hi,
Here are the steps:
1. Create a world space UI above the character's head. Make it a child GameObject of the character.
2. Add a "Look At Main Camera" component.
3. Add UI Images for question mark and exclamation mark to the canvas.
The easiest way to do steps 1-3 is to copy the "UI" GameObject from RPG Kit's example "Spell Conversation" character in the "Main Level" scene. This has a UI with an exclamation mark Image. Rename the Mark to Exclamation. Add a similar image for the question mark, and rename it Question. Set them both inactive.
4. In your conversation, when you want to show the question mark, use this Sequence:
where "MyNPC" is the name of your NPC.Code: Select all
SetActive(MyNPC/UI/Question)
If you want to hide the question mark and show the exclamation mark, use this Sequence:
Code: Select all
SetActive(MyNPC/UI/Question, false); SetActive(MyNPC/UI/Exclamation)
Notes:
- If you don't have images handy, you can use UI Text for the Question and Exclamation elements.
- You can add Animator components to the Question and Exclamation elements and animate them -- for example, make them pulse by changing the size +/- 25%.
Well its 3.1.2 now u can make example today or tomorrowTony Li wrote:Yes, you can add an Animator component to the world space UI and animate it. I'll try to put an example of this in the updated RPG Kit Support package.
I'll try to make it available as soon as possible. I'm working as fast as I can on the next update.Demonith wrote:Well its 3.1.2 now u can make example today or tomorrowTony Li wrote:Yes, you can add an Animator component to the world space UI and animate it. I'll try to put an example of this in the updated RPG Kit Support package.
Awesome take your time cant wait to see new thingsTony Li wrote:I'll try to make it available as soon as possible. I'm working as fast as I can on the next update.Demonith wrote:Well its 3.1.2 now u can make example today or tomorrowTony Li wrote:Yes, you can add an Animator component to the world space UI and animate it. I'll try to put an example of this in the updated RPG Kit Support package.