1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-05 13:34:48 -04:00
dressupzack/scenes/object.tscn
Tony Bark 3097f5063a Tweaked drag and drop script
- Applied new drag & drop architecture to main game scene
2023-12-09 22:26:27 -05:00

26 lines
1,017 B
Text

[gd_scene load_steps=3 format=3 uid="uid://dn152ouc7l21p"]
[ext_resource type="Script" path="res://scripts/object.gd" id="1_tyfcj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xd2jg"]
size = Vector2(111, 125.5)
[node name="Object" type="Node2D"]
script = ExtResource("1_tyfcj")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(4.5, 6.5)
scale = Vector2(1.32143, 1.32292)
[node name="Area2D" type="Area2D" parent="."]
metadata/_edit_lock_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(5, 7)
shape = SubResource("RectangleShape2D_xd2jg")
metadata/_edit_lock_ = true
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]
[connection signal="mouse_entered" from="Area2D" to="." method="_on_area_2d_mouse_entered"]
[connection signal="mouse_exited" from="Area2D" to="." method="_on_area_2d_mouse_exited"]