Built a simple 'World 1-1' level to test platforming
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class_name ArrowGirl extends Area2D
|
||||
|
||||
@onready var _dialogController = $/root/Scene/DialogController
|
||||
@onready var _sprite = $AnimatedSprite2D
|
||||
|
||||
#boilerplate
|
||||
@@ -16,8 +15,8 @@ func _on_animation_finished() -> void:
|
||||
|
||||
func _on_body_entered(body) -> void:
|
||||
if body is BoxBoy:
|
||||
_dialogController.set_dialog("Hello.", 0.2)
|
||||
%DialogController.set_dialog("Hello flowers!", 0.2)
|
||||
|
||||
func _on_body_exited(body) -> void:
|
||||
if body is BoxBoy:
|
||||
_dialogController.set_dialog("")
|
||||
%DialogController.set_dialog("")
|
||||
|
||||
@@ -49,6 +49,7 @@ animation = &"idle_glance"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1190138841]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_53v1e")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user