Cranberry/Objects/plant 2.tscn

32 lines
988 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Assets/plant2.png" type="Texture" id=1]
[ext_resource path="res://Objects/movable.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 6.4881
[sub_resource type="CircleShape2D" id=2]
radius = 10.1484
[node name="plant 2" type="KinematicBody2D"]
position = Vector2( 137, 220 )
script = ExtResource( 2 )
[node name="sprite" type="Sprite" parent="."]
position = Vector2( -0.372955, 0.92511 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -0.140312, 0.859698 )
shape = SubResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( -0.210236, 0.917328 )
shape = SubResource( 2 )
[connection signal="body_entered" from="Area2D" to="." method="_on_player_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_player_exited"]