mirror of
https://github.com/mightypanders/GMTKJam2021.git
synced 2025-01-31 06:10:00 +01:00
Gave guests an exclusion zone
This commit is contained in:
parent
9306f1e18d
commit
04b594137b
16
Guest.tscn
16
Guest.tscn
@ -1,18 +1,28 @@
|
|||||||
[gd_scene load_steps=5 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://assets/placeholder_white.png" type="Texture" id=1]
|
[ext_resource path="res://assets/placeholder_white.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://Guest.gd" type="Script" id=2]
|
[ext_resource path="res://Guest.gd" type="Script" id=2]
|
||||||
|
|
||||||
|
[sub_resource type="CircleShape2D" id=1]
|
||||||
|
radius = 112.271
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=2]
|
[sub_resource type="CapsuleShape2D" id=2]
|
||||||
radius = 6.04475
|
radius = 6.04475
|
||||||
height = 3.32129
|
height = 3.32129
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id=1]
|
[sub_resource type="CircleShape2D" id=3]
|
||||||
radius = 24.5545
|
radius = 24.5545
|
||||||
|
|
||||||
[node name="Guest" type="KinematicBody2D"]
|
[node name="Guest" type="KinematicBody2D"]
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="ExclusionZone" type="Area2D" parent="."]
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ExclusionZone"]
|
||||||
|
modulate = Color( 0.0823529, 1, 0.027451, 1 )
|
||||||
|
show_behind_parent = true
|
||||||
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
|
|
||||||
@ -22,7 +32,7 @@ shape = SubResource( 2 )
|
|||||||
[node name="PickUpArea" type="Area2D" parent="."]
|
[node name="PickUpArea" type="Area2D" parent="."]
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 3 )
|
||||||
|
|
||||||
[connection signal="area_entered" from="PickUpArea" to="." method="_on_PickUpArea_area_entered"]
|
[connection signal="area_entered" from="PickUpArea" to="." method="_on_PickUpArea_area_entered"]
|
||||||
[connection signal="body_entered" from="PickUpArea" to="." method="_on_PickUpArea_body_entered"]
|
[connection signal="body_entered" from="PickUpArea" to="." method="_on_PickUpArea_body_entered"]
|
||||||
|
Loading…
Reference in New Issue
Block a user