Testing cutscene setup

This commit is contained in:
2026-01-08 22:23:07 -06:00
parent 316e4a154a
commit cd2dd3fe0e
12 changed files with 58 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
class_name Entity extends CharacterBody3D
const ConversationElement = preload("res://ConversationElement.gd")
const ConversationElement = preload("res://cutscene/conversation/ConversationElement.gd")
enum MovementType {
NONE,

View File

@@ -17,8 +17,7 @@ func isInteractable() -> bool:
return true
func _onConversationInteract(_other:Entity) -> void:
print("Starting conversation with ", entity.name)
pass
CUTSCENE.setConversation(entity.conversation)
func onInteract(other:Entity) -> void:
if entity.interactType == Entity.InteractType.NONE:
@@ -29,4 +28,4 @@ func onInteract(other:Entity) -> void:
_onConversationInteract(other)
return
_:
pass
pass

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" uid="uid://xe6pcuq741xi" path="res://overworld/map/TestMap.gd" id="1_6ms5s"]
[ext_resource type="PackedScene" uid="uid://cluuhtfjeodwb" path="res://overworld/map/TestMapBase.tscn" id="1_ox0si"]
[ext_resource type="PackedScene" uid="uid://by4a0r2hp0w6s" path="res://overworld/entity/Entity.tscn" id="2_jmygs"]
[ext_resource type="Script" uid="uid://b40rstjkpompc" path="res://ConversationElement.gd" id="3_p7git"]
[ext_resource type="Script" uid="uid://b40rstjkpompc" path="res://cutscene/conversation/ConversationElement.gd" id="3_p7git"]
[sub_resource type="Resource" id="Resource_p7git"]
script = ExtResource("3_p7git")