1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-06 05:44:48 -04:00
dressupzack/scenes/object.tscn
Tony Bark 2bc37e1100 Advanced drag and drop
More precise drag and drop. Still has a few bugs, but most of the base is there.

- Removed translations.
- Cleaned up README
2023-12-07 21:45:26 -05:00

24 lines
1 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://dn152ouc7l21p"]
[ext_resource type="Texture2D" uid="uid://d1hpnolu3m1ho" path="res://godot.png" id="1_jjr7w"]
[ext_resource type="Script" path="res://scripts/object.gd" id="1_tyfcj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_py2o1"]
size = Vector2(59, 59)
[node name="Object" type="Node2D"]
script = ExtResource("1_tyfcj")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_jjr7w")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0.5, -0.5)
shape = SubResource("RectangleShape2D_py2o1")
[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"]