49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://domcpxdf6lqpb"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cun14l52f477p" path="res://textures/atlas/Bushes_All_01_SPRT.png" id="1_1wk1p"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2wdar"]
|
|
atlas = ExtResource("1_1wk1p")
|
|
region = Rect2(384, 64, 288, 224)
|
|
|
|
[sub_resource type="GDScript" id="GDScript_uqtu8"]
|
|
script/source = "@tool
|
|
extends Sprite2D
|
|
|
|
@export_group(\"Sticker Detection Shape\")
|
|
@export var Shape :Shape2D:
|
|
set(new_shape):
|
|
Shape = new_shape
|
|
$Area2D/CollisionShape2D.shape = Shape
|
|
$Area2D/CollisionShape2D.queue_redraw()
|
|
@export var Position :Vector2:
|
|
set(new_position):
|
|
Position = new_position
|
|
$Area2D/CollisionShape2D.position = Position
|
|
$Area2D/CollisionShape2D.queue_redraw()
|
|
@export var Rotation :Vector2:
|
|
set(new_rotation):
|
|
Rotation = new_rotation
|
|
$Area2D/CollisionShape2D.rotation = Rotation
|
|
$Area2D/CollisionShape2D.queue_redraw()
|
|
|
|
"
|
|
|
|
[node name="FreeSticker1" type="Sprite2D"]
|
|
scale = Vector2(3.80334, 3.95089)
|
|
texture = SubResource("AtlasTexture_2wdar")
|
|
centered = false
|
|
offset = Vector2(-161.055, -179.785)
|
|
script = SubResource("GDScript_uqtu8")
|
|
metadata/tags = ["sticker"]
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
collision_layer = 2
|
|
collision_mask = 0
|
|
monitoring = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(-4.46976, -71.6294)
|
|
rotation = 1.5708
|
|
|
|
[connection signal="property_list_changed" from="." to="." method="_on_property_list_changed"]
|