src / dialogue / chapters / 0 / stage0.tscn
Diagram
Overridden virtual functions
_ready
func _ready() -> void:
if not owner: start()
func _ready() -> void:
controller.boot_file = boot_file
controller.channel.connect(_handle)
_input
func _input(_event: InputEvent) -> void:
if not started: return
if waiting: return
if _event.is_action_pressed('ui_accept'):
continue_dialogue()
Instantiators
Scene Tree
-
Stage0 Node2D
-
Dialogue res://src/dialogue/dialogue.tscn
-
House Sprite2D
-
OldWoman res://src/actors/old_woman/old_woman.tscn
-
LaughingParticles2D CPUParticles2D
-
-
EventArea2D Area2D
-
CollisionShape2D CollisionShape2D
-
-
Camera2D Camera2D
-
AnimationPlayer AnimationPlayer
-
Signal Connections
func _on_dialogue_event(event_name: String) -> void:
var key = "event_%s" % event_name
if %AnimationPlayer.has_animation(key):
%AnimationPlayer.play(key)
event.emit(event_name)
func _on_dialogue_finished() -> void:
%AnimationPlayer.play('finished')
func _on_event_area_2d_area_entered(_area: Area2D) -> void:
start()
Animations
Animation_oyqfx
event_02.pass_by
event_03.laughing
event_04.zoom_in
event_05.zoom_out
finished
Properties
| Name | Value |
|---|---|
script |
| Name | Value |
|---|---|
unique_name_in_owner |
|
visible |
|
boot_file |
|
speakers |
|
| Name | Value |
|---|---|
position |
|
scale |
|
texture |
| Name | Value |
|---|---|
position |
|
| Name | Value |
|---|---|
unique_name_in_owner |
|
visible |
|
position |
|
amount |
|
texture |
|
preprocess |
|
gravity |
|
tangential_accel_min |
|
tangential_accel_max |
|
scale_amount_min |
|
scale_amount_max |
|
| Name | Value |
|---|---|
collision_layer |
|
collision_mask |
|
| Name | Value |
|---|---|
position |
|
shape |
|
| Name | Value |
|---|---|
unique_name_in_owner |
|
position |
|
ignore_rotation |
|
enabled |
|
| Name | Value |
|---|---|
unique_name_in_owner |
|
libraries |
|
stage_0.gd
extends Node2D
signal event(event_name: String)
var started : bool = false
func _ready() -> void:
if not owner: start()
func start() -> void:
if started: return
started = true
%Camera2D.enabled = true
%Camera2D.make_current()
%Dialogue.start()
func _on_event_area_2d_area_entered(_area: Area2D) -> void:
start()
func _on_dialogue_event(event_name: String) -> void:
var key = "event_%s" % event_name
if %AnimationPlayer.has_animation(key):
%AnimationPlayer.play(key)
event.emit(event_name)
func _on_dialogue_finished() -> void:
%AnimationPlayer.play('finished')



