forked from team-sg/hero-mark-2
msx dialogue
This commit is contained in:
parent
afc233c3c2
commit
62885d32cb
7 changed files with 80 additions and 13 deletions
|
@ -1,9 +1,11 @@
|
|||
[gd_scene load_steps=20 format=2]
|
||||
[gd_scene load_steps=22 format=2]
|
||||
|
||||
[ext_resource path="res://shaders/1px_border.gdshader" type="Shader" id=1]
|
||||
[ext_resource path="res://graphics/npc/msx_respawn.png" type="Texture" id=2]
|
||||
[ext_resource path="res://graphics/npc/msx_walk.png" type="Texture" id=3]
|
||||
[ext_resource path="res://graphics/npc/msx_blink.png" type="Texture" id=4]
|
||||
[ext_resource path="res://ui/theme.tres" type="Theme" id=5]
|
||||
[ext_resource path="res://ui/2ndpuberty_outline.tres" type="Material" id=6]
|
||||
[ext_resource path="res://graphics/npc/msx_idle.png" type="Texture" id=11]
|
||||
[ext_resource path="res://scripts/snap_sprite.gd" type="Script" id=12]
|
||||
[ext_resource path="res://objects/npc/msx.gd" type="Script" id=13]
|
||||
|
@ -48,6 +50,18 @@ tracks/2/keys = {
|
|||
"update": 0,
|
||||
"values": [ 0 ]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/path = NodePath("HereTakeThis:visible")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/imported = false
|
||||
tracks/3/enabled = true
|
||||
tracks/3/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ false ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=18]
|
||||
resource_name = "blink"
|
||||
|
@ -92,7 +106,7 @@ tracks/2/keys = {
|
|||
|
||||
[sub_resource type="Animation" id=15]
|
||||
resource_name = "give"
|
||||
length = 0.5
|
||||
length = 4.0
|
||||
step = 0.06
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:texture")
|
||||
|
@ -144,6 +158,18 @@ tracks/3/keys = {
|
|||
"method": "spawn_shard"
|
||||
} ]
|
||||
}
|
||||
tracks/4/type = "value"
|
||||
tracks/4/path = NodePath("HereTakeThis:visible")
|
||||
tracks/4/interp = 1
|
||||
tracks/4/loop_wrap = true
|
||||
tracks/4/imported = false
|
||||
tracks/4/enabled = true
|
||||
tracks/4/keys = {
|
||||
"times": PoolRealArray( 0, 2.52 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ true, false ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=4]
|
||||
resource_name = "idle"
|
||||
|
@ -298,6 +324,7 @@ anims/walk = SubResource( 9 )
|
|||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
material = SubResource( 10 )
|
||||
scale = Vector2( -1, 1 )
|
||||
texture = ExtResource( 15 )
|
||||
hframes = 2
|
||||
region_rect = Rect2( 0, 0, 20, 20 )
|
||||
|
@ -342,23 +369,34 @@ scale_amount_curve = SubResource( 13 )
|
|||
[node name="RayCast2D" type="RayCast2D" parent="."]
|
||||
position = Vector2( 0, 1 )
|
||||
enabled = true
|
||||
cast_to = Vector2( 32, 0 )
|
||||
cast_to = Vector2( -32, 0 )
|
||||
collision_mask = 3
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="RespawnRaycast" type="RayCast2D" parent="."]
|
||||
position = Vector2( 16, 0 )
|
||||
position = Vector2( -16, 0 )
|
||||
enabled = true
|
||||
cast_to = Vector2( 56, 0 )
|
||||
cast_to = Vector2( -56, 0 )
|
||||
collision_mask = 8
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="."]
|
||||
position = Vector2( 17, 2 )
|
||||
position = Vector2( -17, 2 )
|
||||
__meta__ = {
|
||||
"_gizmo_extents_": 0.0
|
||||
}
|
||||
|
||||
[node name="BlinkTimer" type="Timer" parent="."]
|
||||
|
||||
[node name="HereTakeThis" type="Label" parent="."]
|
||||
visible = false
|
||||
material = ExtResource( 6 )
|
||||
margin_left = -48.0
|
||||
margin_top = -22.0
|
||||
margin_right = 57.0
|
||||
margin_bottom = 1.0
|
||||
theme = ExtResource( 5 )
|
||||
text = "Here, take this"
|
||||
align = 1
|
||||
|
||||
[connection signal="timeout" from="BlinkTimer" to="." method="_on_BlinkTimer_timeout"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue