Flopsy/objects/characters/flake/flake.tscn

35 lines
1 KiB
Text
Raw Permalink Normal View History

2022-07-17 14:24:15 +02:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://objects/characters/flake/flake.tres" type="SpriteFrames" id=1]
[ext_resource path="res://objects/characters/flake/flake.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 144, 216.5 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 387.5, 216.5 )
[node name="Flake" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 4
script = ExtResource( 2 )
[node name="Sprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
2022-07-20 04:28:30 +02:00
animation = "run"
frame = 5
2022-07-17 14:24:15 +02:00
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -22, 6.5 )
shape = SubResource( 2 )
[node name="PlayerCollision" type="Area2D" parent="."]
collision_layer = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerCollision"]
position = Vector2( -21.5, 6.5 )
shape = SubResource( 3 )
[connection signal="body_entered" from="PlayerCollision" to="." method="_on_player_entered"]