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:
parent
cd06858a90
commit
3eff920146
3 changed files with 11 additions and 1 deletions
|
@ -20,6 +20,8 @@ var is_night := false
|
|||
var in_light := false
|
||||
|
||||
func _ready():
|
||||
is_night = false
|
||||
in_light = false
|
||||
print(\"In light: %s\" % in_light)
|
||||
|
||||
func _process(delta):
|
||||
|
@ -28,6 +30,7 @@ func _process(delta):
|
|||
ded_timer.start(0.4)
|
||||
|
||||
func _on_LightCheck_entered(area):
|
||||
print(area.name)
|
||||
in_light = true
|
||||
# print(\"In light: %s\" % in_light)
|
||||
|
||||
|
@ -84,7 +87,8 @@ __meta__ = {
|
|||
}
|
||||
|
||||
[node name="LightCheck" type="Area2D" parent="PlayerStatus"]
|
||||
collision_mask = 2
|
||||
collision_layer = 8
|
||||
collision_mask = 8
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerStatus/LightCheck"]
|
||||
shape = SubResource( 4 )
|
||||
|
|
|
@ -44,6 +44,8 @@ animations = [ {
|
|||
|
||||
[node name="light" type="Area2D"]
|
||||
position = Vector2( 0, -23 )
|
||||
collision_layer = 8
|
||||
collision_mask = 8
|
||||
script = ExtResource( 8 )
|
||||
__meta__ = {
|
||||
"_edit_horizontal_guides_": [ ]
|
||||
|
|
|
@ -98,6 +98,10 @@ restart_game={
|
|||
]
|
||||
}
|
||||
|
||||
[layer_names]
|
||||
|
||||
2d_physics/layer_4="Lights"
|
||||
|
||||
[physics]
|
||||
|
||||
common/enable_pause_aware_picking=true
|
||||
|
|
Loading…
Reference in a new issue