44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://Graphics/Placeholder.png" type="Texture" id=1]
|
|
[ext_resource path="res://Graphics/Circle.png" type="Texture" id=2]
|
|
[ext_resource path="res://Scripts/PersonBody.gd" type="Script" id=3]
|
|
[ext_resource path="res://Scripts/PersonRoot.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 16, 16 )
|
|
|
|
[sub_resource type="SpriteFrames" id=2]
|
|
animations = [ {
|
|
"frames": [ ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 1 ), ExtResource( 2 ) ],
|
|
"loop": true,
|
|
"name": "New Anim",
|
|
"speed": 2.0
|
|
} ]
|
|
|
|
[node name="PersonRoot" type="Node2D" groups=[
|
|
"pickable",
|
|
]]
|
|
position = Vector2( 0, -32 )
|
|
scale = Vector2( 1, 2 )
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="PersonBody" type="KinematicBody2D" parent="."]
|
|
input_pickable = true
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="PersonShape" type="CollisionShape2D" parent="PersonBody"]
|
|
visible = false
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="PersonSprite" type="AnimatedSprite" parent="PersonBody"]
|
|
frames = SubResource( 2 )
|
|
animation = "New Anim"
|
|
[connection signal="mouse_entered" from="PersonBody" to="PersonBody" method="onMouseEnter"]
|
|
[connection signal="mouse_exited" from="PersonBody" to="PersonBody" method="onMouseLeft"]
|