Commit c5df099c authored by Julia Santos's avatar Julia Santos

Balcony is now locked until unlocked with bobby pins

parent 3c003a6b
...@@ -161,6 +161,9 @@ __meta__ = { ...@@ -161,6 +161,9 @@ __meta__ = {
position = Vector2( 474.699, 104.779 ) position = Vector2( 474.699, 104.779 )
input_pickable = true input_pickable = true
script = ExtResource( 16 ) script = ExtResource( 16 )
__meta__ = {
"_edit_group_": true
}
[node name="Panel" type="Panel" parent="UI/To do"] [node name="Panel" type="Panel" parent="UI/To do"]
margin_right = 287.0 margin_right = 287.0
......
...@@ -27,7 +27,8 @@ func objInteraction(selected): # when an object is used on it ...@@ -27,7 +27,8 @@ func objInteraction(selected): # when an object is used on it
dialogueBox.text = flavor dialogueBox.text = flavor
else: else:
dialogueBox.text = "No flavor text found" #can replace this later! dialogueBox.text = "No flavor text found" #can replace this later!
if selected.get_name() == "Bobby pin": # unlocking the door with a bobby pin if inventory.get_item_text(selected) == "Bobby Pins": # unlocking the door with a bobby pin
dialogueBox.text = "I can't believe that actually worked?!"
emit_signal("enter") emit_signal("enter")
unlocked = true unlocked = true
inventory.unselect_all() #unselect item inventory.unselect_all() #unselect item
......
...@@ -14,6 +14,10 @@ config/name="Thesis practice" ...@@ -14,6 +14,10 @@ config/name="Thesis practice"
run/main_scene="res://Multi.tscn" run/main_scene="res://Multi.tscn"
config/icon="res://assets/189066690_228150108704696_3850052974465333899_n.png" config/icon="res://assets/189066690_228150108704696_3850052974465333899_n.png"
[display]
window/size/resizable=false
[physics] [physics]
common/enable_pause_aware_picking=true common/enable_pause_aware_picking=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment