[gd_scene load_steps=3 format=2] [ext_resource path="res://Hazard.gd" type="Script" id=1] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 24, 24 ) [node name="Hazard" type="Area2D"] script = ExtResource( 1 ) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 24, 24 ) shape = SubResource( 1 ) [node name="ColorRect" type="ColorRect" parent="."] margin_right = 48.0 margin_bottom = 48.0 color = Color( 1, 0, 0, 1 ) __meta__ = { "_edit_use_anchors_": false } [connection signal="body_entered" from="." to="." method="_on_Hazard_body_entered"]