bullet.tscn 481 B

123456789101112131415161718
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://bullet.gd" type="Script" id=1]
  3. [sub_resource type="RectangleShape2D" id=1]
  4. extents = Vector2( 3, 3 )
  5. [node name="bullet" type="KinematicBody2D"]
  6. script = ExtResource( 1 )
  7. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  8. shape = SubResource( 1 )
  9. [node name="Timer" type="Timer" parent="."]
  10. wait_time = 3.0
  11. autostart = true
  12. [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]