Mineshafts-prototype2/game/item_drop/item_drop.tscn

33 lines
988 B
Plaintext

[gd_scene load_steps=4 format=2]
[ext_resource path="res://game/item_drop/item_drop.gd" type="Script" id=1]
[sub_resource type="BoxShape" id=1]
[sub_resource type="SphereShape" id=2]
[node name="item" type="RigidBody"]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
script = ExtResource( 1 )
[node name="collision" type="CollisionShape" parent="."]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0 )
shape = SubResource( 1 )
disabled = true
[node name="mesh" type="MeshInstance" parent="."]
[node name="area" type="Area" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="area"]
transform = Transform( 0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, 0 )
shape = SubResource( 2 )
[node name="Timer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true
autostart = true
[connection signal="body_entered" from="area" to="." method="_on_area_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]