1
Fork 0
mirror of https://github.com/Steffo99/watermelonkeys-patched-ld51.git synced 2024-11-21 23:54:19 +00:00

fixed giovanna not really dying

This commit is contained in:
AndreaTerenz 2022-10-03 22:29:55 +02:00
parent cd06858a90
commit 3eff920146
3 changed files with 11 additions and 1 deletions

View file

@ -20,6 +20,8 @@ var is_night := false
var in_light := false var in_light := false
func _ready(): func _ready():
is_night = false
in_light = false
print(\"In light: %s\" % in_light) print(\"In light: %s\" % in_light)
func _process(delta): func _process(delta):
@ -28,6 +30,7 @@ func _process(delta):
ded_timer.start(0.4) ded_timer.start(0.4)
func _on_LightCheck_entered(area): func _on_LightCheck_entered(area):
print(area.name)
in_light = true in_light = true
# print(\"In light: %s\" % in_light) # print(\"In light: %s\" % in_light)
@ -84,7 +87,8 @@ __meta__ = {
} }
[node name="LightCheck" type="Area2D" parent="PlayerStatus"] [node name="LightCheck" type="Area2D" parent="PlayerStatus"]
collision_mask = 2 collision_layer = 8
collision_mask = 8
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerStatus/LightCheck"] [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerStatus/LightCheck"]
shape = SubResource( 4 ) shape = SubResource( 4 )

View file

@ -44,6 +44,8 @@ animations = [ {
[node name="light" type="Area2D"] [node name="light" type="Area2D"]
position = Vector2( 0, -23 ) position = Vector2( 0, -23 )
collision_layer = 8
collision_mask = 8
script = ExtResource( 8 ) script = ExtResource( 8 )
__meta__ = { __meta__ = {
"_edit_horizontal_guides_": [ ] "_edit_horizontal_guides_": [ ]

View file

@ -98,6 +98,10 @@ restart_game={
] ]
} }
[layer_names]
2d_physics/layer_4="Lights"
[physics] [physics]
common/enable_pause_aware_picking=true common/enable_pause_aware_picking=true