Gonna invent a scripting language lol

This commit is contained in:
2025-08-30 22:25:50 -05:00
parent 3ccf4ebabb
commit 6d75b33775
4 changed files with 43 additions and 6 deletions

View File

@@ -62,8 +62,9 @@ animations = [{
[sub_resource type="SphereShape3D" id="SphereShape3D_x8luf"]
radius = 8.5
[node name="NPC" type="CharacterBody3D"]
[node name="NPC" type="CharacterBody3D" node_paths=PackedStringArray("_movement")]
script = ExtResource("1_00k55")
_movement = NodePath("Scripts/NPCMovement")
[node name="Scripts" type="Node" parent="."]
@@ -86,10 +87,10 @@ axis = 1
double_sided = false
texture_filter = 0
sprite_frames = SubResource("SpriteFrames_1seh5")
animation = &"walk_west"
animation = &"walk_south"
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 8.5, 0)
shape = SubResource("SphereShape3D_x8luf")
[connection signal="interactEvent" from="InteractableArea" to="." method="_onInteract"]
[connection signal="interactEvent" from="InteractableArea" to="." method="onInteract"]