simplest-godot-dialogues
所属分类:自然语言处理
开发工具:GDScript
文件大小:21KB
下载次数:0
上传日期:2021-02-28 19:54:57
上 传 者:
sh-1993
说明: 简单对话控制器和示例场景
(Simple dialogue controller and example scene)
文件列表:
Dialogue.gd (517, 2021-03-01)
DialogueController.gd (1388, 2021-03-01)
DialogueController.tscn (2016, 2021-03-01)
ExampleScene.gd (390, 2021-03-01)
ExampleScene.tscn (613, 2021-03-01)
LICENSE (1062, 2021-03-01)
default_env.tres (163, 2021-03-01)
dialogue_box.png (216, 2021-03-01)
dialogue_box.png.import (664, 2021-03-01)
example_project.png (51489, 2021-03-01)
project.godot (620, 2021-03-01)
## Simplest Godot Dialogues
Simple dialogue controller and example scene
* Copy `DialogueController.gd` and `DialogueController.tscn` into your project
* Use the `DialogueController.tscn` in the scene
* Edit the `DialogueController.tscn` and change the `NinePatchRect` with your texture
* Create variable of type `Dialogue` (i.e inside an NPC), and emit the signal `dialogue_interact` (with the `Dialogue` variable as the second parameter) to the `DialogueController` node
* To create the variable above, pass an array of strings to `var dialogue : Dialogue = Dialogue.new(sentences)`
* Read the code - it's super simple
## Example Usage in Project
![Example usage](https://github.com/alt-romes/simplest-godot-dialogues/blob/main/example_project.png)
近期下载者:
相关文件:
收藏者: