hitbox.tscn 403 B

1234567891011121314
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://hitbox.gd" type="Script" id=1]
  3. [sub_resource type="RectangleShape2D" id=2]
  4. extents = Vector2( 50, 50 )
  5. [node name="hitbox" type="Area2D"]
  6. script = ExtResource( 1 )
  7. [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
  8. shape = SubResource( 2 )
  9. [connection signal="body_entered" from="." to="." method="_on_hitbox_body_entered"]