diff --git a/test_game/test_game.tscn b/test_game/test_game.tscn index 508127e4..05c99abf 100644 --- a/test_game/test_game.tscn +++ b/test_game/test_game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=185 format=3 uid="uid://bbwmxee7ukgul"] +[gd_scene load_steps=197 format=3 uid="uid://bbwmxee7ukgul"] [ext_resource type="PackedScene" uid="uid://ddx1cd5q6t61o" path="res://addons/block_code/simple_nodes/simple_character/simple_character.tscn" id="1_hrpwq"] [ext_resource type="Script" path="res://addons/block_code/block_code_node/block_code.gd" id="2_ewral"] @@ -119,77 +119,77 @@ func _ready(): " -[sub_resource type="Resource" id="Resource_psw2x"] +[sub_resource type="Resource" id="Resource_5osig"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.941176, 0.764706, 0, 1)], ["block_type", 8], ["position", Vector2(0, 0)], ["block_format", "Is in group {group: STRING}"], ["statement", "is_in_group({group})"], ["param_input_strings", { "group": "Enemy" }]] -[sub_resource type="Resource" id="Resource_grnyt"] +[sub_resource type="Resource" id="Resource_rjyxr"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_psw2x") +serialized_block = SubResource("Resource_5osig") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_6cp26"] +[sub_resource type="Resource" id="Resource_3j1pm"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "I am an enemy!" }]] -[sub_resource type="Resource" id="Resource_0dynd"] +[sub_resource type="Resource" id="Resource_3d422"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_6cp26") +serialized_block = SubResource("Resource_3j1pm") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_dxfo3"] +[sub_resource type="Resource" id="Resource_og7va"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "I am not an enemy!" }]] -[sub_resource type="Resource" id="Resource_u0j14"] +[sub_resource type="Resource" id="Resource_d0jlt"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_dxfo3") +serialized_block = SubResource("Resource_og7va") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_cgiam"] +[sub_resource type="Resource" id="Resource_0gl4d"] script = ExtResource("3_dpt5n") block_class = &"ControlBlock" serialized_props = [["block_name", "control_block"], ["label", "Control Block"], ["color", Color(1, 0.678431, 0.462745, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_formats", ["if {cond: BOOL}", "else"]], ["statements", ["if {cond}:", "else:"]], ["param_input_strings_array", [{ "cond": "" }, {}]]] -[sub_resource type="Resource" id="Resource_fyhs8"] +[sub_resource type="Resource" id="Resource_vtm0s"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_cgiam") -path_child_pairs = [[NodePath("VBoxContainer/MarginContainer/Rows/Row0/RowHBoxContainer/RowHBox/ParameterInput0/SnapPoint"), SubResource("Resource_grnyt")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer0/SnapPoint"), SubResource("Resource_0dynd")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer1/SnapPoint"), SubResource("Resource_u0j14")]] +serialized_block = SubResource("Resource_0gl4d") +path_child_pairs = [[NodePath("VBoxContainer/MarginContainer/Rows/Row0/RowHBoxContainer/RowHBox/ParameterInput0/SnapPoint"), SubResource("Resource_rjyxr")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer0/SnapPoint"), SubResource("Resource_3d422")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer1/SnapPoint"), SubResource("Resource_d0jlt")]] -[sub_resource type="Resource" id="Resource_45x8s"] +[sub_resource type="Resource" id="Resource_wc6vx"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.941176, 0.764706, 0, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "Add to group {group: STRING}"], ["statement", "add_to_group({group})"], ["param_input_strings", { "group": "Player" }]] -[sub_resource type="Resource" id="Resource_32kkt"] +[sub_resource type="Resource" id="Resource_ber2n"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_45x8s") -path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_fyhs8")]] +serialized_block = SubResource("Resource_wc6vx") +path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_vtm0s")]] -[sub_resource type="Resource" id="Resource_hal62"] +[sub_resource type="Resource" id="Resource_03yh4"] script = ExtResource("3_dpt5n") block_class = &"EntryBlock" serialized_props = [["block_name", "ready_block"], ["label", "EntryBlock"], ["color", Color(0.980392, 0.34902, 0.337255, 1)], ["block_type", 2], ["position", Vector2(105, 34)], ["block_format", "On Ready"], ["statement", "func _ready():"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_k1r3w"] +[sub_resource type="Resource" id="Resource_ggn73"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_hal62") -path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_32kkt")]] +serialized_block = SubResource("Resource_03yh4") +path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_ber2n")]] -[sub_resource type="Resource" id="Resource_yovsn"] +[sub_resource type="Resource" id="Resource_rr6jq"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.290196, 0.52549, 0.835294, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "Move with player 1 buttons, speed {speed: INT}"], ["statement", "velocity = Input.get_vector(\"ui_left\", \"ui_right\", \"ui_up\", \"ui_down\")*{speed} @@ -197,82 +197,92 @@ move_and_slide()"], ["param_input_strings", { "speed": "200" }]] -[sub_resource type="Resource" id="Resource_5835y"] +[sub_resource type="Resource" id="Resource_83cxf"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_yovsn") +serialized_block = SubResource("Resource_rr6jq") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_7usp2"] +[sub_resource type="Resource" id="Resource_apsfa"] script = ExtResource("3_dpt5n") block_class = &"EntryBlock" serialized_props = [["block_name", "physics_process_block"], ["label", "EntryBlock"], ["color", Color(0.980392, 0.34902, 0.337255, 1)], ["block_type", 2], ["position", Vector2(437, 62)], ["block_format", "On Physics Process"], ["statement", "func _physics_process(delta):"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_j1vxs"] +[sub_resource type="Resource" id="Resource_nq5eu"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_7usp2") -path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_5835y")]] +serialized_block = SubResource("Resource_apsfa") +path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_83cxf")]] -[sub_resource type="Resource" id="Resource_qplxi"] +[sub_resource type="Resource" id="Resource_vq7a1"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_2iohy"] +[sub_resource type="Resource" id="Resource_gxi83"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_qplxi") +serialized_block = SubResource("Resource_vq7a1") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_mrm2y"] +[sub_resource type="Resource" id="Resource_48xjn"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_4kejc"] +[sub_resource type="Resource" id="Resource_4s3x6"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_mrm2y") +serialized_block = SubResource("Resource_48xjn") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_v048n"] +[sub_resource type="Resource" id="Resource_vncog"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_aqlb3"] +[sub_resource type="Resource" id="Resource_vxlg0"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_v048n") +serialized_block = SubResource("Resource_vncog") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_rvi5f"] +[sub_resource type="Resource" id="Resource_6e8rt"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_lhjre"] +[sub_resource type="Resource" id="Resource_5wfhl"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_rvi5f") +serialized_block = SubResource("Resource_6e8rt") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_3336d"] +[sub_resource type="Resource" id="Resource_1nwt2"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_5ainx"] +[sub_resource type="Resource" id="Resource_iysc5"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_3336d") +serialized_block = SubResource("Resource_1nwt2") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_u05ua"] +[sub_resource type="Resource" id="Resource_c3jr7"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] -[sub_resource type="Resource" id="Resource_sorp5"] +[sub_resource type="Resource" id="Resource_t8ppr"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_u05ua") +serialized_block = SubResource("Resource_c3jr7") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_t3ah1"] +[sub_resource type="Resource" id="Resource_dfnp3"] +script = ExtResource("3_dpt5n") +block_class = &"ParameterBlock" +serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "body"], ["statement", "body"], ["param_input_strings", {}]] + +[sub_resource type="Resource" id="Resource_8qhw6"] +script = ExtResource("2_pqvcj") +serialized_block = SubResource("Resource_dfnp3") +path_child_pairs = [] + +[sub_resource type="Resource" id="Resource_orega"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.941176, 0.764706, 0, 1)], ["block_type", 8], ["position", Vector2(0, 0)], ["block_format", "Is {node: NODE} in group {group: STRING}"], ["statement", "{node}.is_in_group({group})"], ["param_input_strings", { @@ -280,60 +290,97 @@ serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["col "node": "body" }]] -[sub_resource type="Resource" id="Resource_2sxmo"] +[sub_resource type="Resource" id="Resource_b3od6"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_t3ah1") +serialized_block = SubResource("Resource_orega") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_4ybsl"] +[sub_resource type="Resource" id="Resource_nieqj"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "Ow." }]] -[sub_resource type="Resource" id="Resource_jv57w"] +[sub_resource type="Resource" id="Resource_q6oax"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_4ybsl") +serialized_block = SubResource("Resource_nieqj") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_khojw"] +[sub_resource type="Resource" id="Resource_3dr6a"] script = ExtResource("3_dpt5n") block_class = &"ControlBlock" serialized_props = [["block_name", "control_block"], ["label", "Control Block"], ["color", Color(1, 0.678431, 0.462745, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_formats", ["if {cond: BOOL}"]], ["statements", ["if {cond}:"]], ["param_input_strings_array", [{ "cond": "" }]]] -[sub_resource type="Resource" id="Resource_tmpcl"] +[sub_resource type="Resource" id="Resource_nm4tu"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_khojw") -path_child_pairs = [[NodePath("VBoxContainer/MarginContainer/Rows/Row0/RowHBoxContainer/RowHBox/ParameterInput0/SnapPoint"), SubResource("Resource_2sxmo")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer0/SnapPoint"), SubResource("Resource_jv57w")]] +serialized_block = SubResource("Resource_3dr6a") +path_child_pairs = [[NodePath("VBoxContainer/MarginContainer/Rows/Row0/RowHBoxContainer/RowHBox/ParameterInput0/SnapPoint"), SubResource("Resource_b3od6")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer0/SnapPoint"), SubResource("Resource_q6oax")]] -[sub_resource type="Resource" id="Resource_4dyvf"] +[sub_resource type="Resource" id="Resource_ip83u"] script = ExtResource("3_dpt5n") block_class = &"EntryBlock" serialized_props = [["block_name", "entry_block"], ["label", "EntryBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 2], ["position", Vector2(189, 547)], ["block_format", "On body enter [body: NODE]"], ["statement", "func _on_body_enter(body):"], ["param_input_strings", { "body": "" }]] -[sub_resource type="Resource" id="Resource_uk0rj"] +[sub_resource type="Resource" id="Resource_uaj1y"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_4dyvf") -path_child_pairs = [[NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_2iohy")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_4kejc")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_aqlb3")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_lhjre")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_5ainx")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_sorp5")], [NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_tmpcl")]] +serialized_block = SubResource("Resource_ip83u") +path_child_pairs = [[NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_gxi83")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_4s3x6")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_vxlg0")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_5wfhl")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_iysc5")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_t8ppr")], [NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_8qhw6")], [NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_nm4tu")]] -[sub_resource type="Resource" id="Resource_w05h5"] +[sub_resource type="Resource" id="Resource_uh8ku"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.756863, 0.184314, 0.556863, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "%{name: STRING}"], ["statement", "%{name}"], ["param_input_strings", { "name": "Will" }]] -[sub_resource type="Resource" id="Resource_715x4"] +[sub_resource type="Resource" id="Resource_pgb6p"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_w05h5") +serialized_block = SubResource("Resource_uh8ku") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_bj725"] +[sub_resource type="Resource" id="Resource_ol1n5"] +script = ExtResource("3_dpt5n") +block_class = &"ParameterBlock" +serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.756863, 0.184314, 0.556863, 1)], ["block_type", 3], ["position", Vector2(0, 0)], ["block_format", "Get property {key: STRING} from {object: NODE}"], ["statement", "{object}.get({key})"], ["param_input_strings", { +"key": "visible", +"object": "" +}]] + +[sub_resource type="Resource" id="Resource_u88ch"] +script = ExtResource("2_pqvcj") +serialized_block = SubResource("Resource_ol1n5") +path_child_pairs = [[NodePath("MarginContainer/HBoxContainer/ParameterInput26/SnapPoint"), SubResource("Resource_pgb6p")]] + +[sub_resource type="Resource" id="Resource_2g7dn"] +script = ExtResource("3_dpt5n") +block_class = &"ParameterBlock" +serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.756863, 0.184314, 0.556863, 1)], ["block_type", 8], ["position", Vector2(0, 0)], ["block_format", "As boolean {value: VARIANT}"], ["statement", "bool({value})"], ["param_input_strings", { +"value": "" +}]] + +[sub_resource type="Resource" id="Resource_hdcut"] +script = ExtResource("2_pqvcj") +serialized_block = SubResource("Resource_2g7dn") +path_child_pairs = [[NodePath("MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_u88ch")]] + +[sub_resource type="Resource" id="Resource_0p4pn"] +script = ExtResource("3_dpt5n") +block_class = &"ParameterBlock" +serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.756863, 0.184314, 0.556863, 1)], ["block_type", 10], ["position", Vector2(0, 0)], ["block_format", "%{name: STRING}"], ["statement", "%{name}"], ["param_input_strings", { +"name": "Will" +}]] + +[sub_resource type="Resource" id="Resource_hnqkx"] +script = ExtResource("2_pqvcj") +serialized_block = SubResource("Resource_0p4pn") +path_child_pairs = [] + +[sub_resource type="Resource" id="Resource_hsjj8"] script = ExtResource("3_dpt5n") block_class = &"ParameterBlock" serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["color", Color(0.309804, 0.592157, 0.364706, 1)], ["block_type", 4], ["position", Vector2(0, 0)], ["block_format", "Get String {var: STRING} from {object: NODE}"], ["statement", "{object}.VAR_DICT[{var}]"], ["param_input_strings", { @@ -341,79 +388,103 @@ serialized_props = [["block_name", "parameter_block"], ["label", "Param"], ["col "var": "hat" }]] -[sub_resource type="Resource" id="Resource_7qh7r"] +[sub_resource type="Resource" id="Resource_00k32"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_bj725") -path_child_pairs = [[NodePath("MarginContainer/HBoxContainer/ParameterInput24/SnapPoint"), SubResource("Resource_715x4")]] +serialized_block = SubResource("Resource_hsjj8") +path_child_pairs = [[NodePath("MarginContainer/HBoxContainer/ParameterInput24/SnapPoint"), SubResource("Resource_hnqkx")]] -[sub_resource type="Resource" id="Resource_keky1"] +[sub_resource type="Resource" id="Resource_ln043"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "hat" }]] -[sub_resource type="Resource" id="Resource_nt1f4"] +[sub_resource type="Resource" id="Resource_6ga3d"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_keky1") +serialized_block = SubResource("Resource_ln043") path_child_pairs = [] -[sub_resource type="Resource" id="Resource_d25kc"] +[sub_resource type="Resource" id="Resource_mpipt"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "" }]] -[sub_resource type="Resource" id="Resource_cj6kn"] +[sub_resource type="Resource" id="Resource_fuxxc"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_d25kc") -path_child_pairs = [[NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_7qh7r")], [NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_nt1f4")]] +serialized_block = SubResource("Resource_mpipt") +path_child_pairs = [[NodePath("VBoxContainer/TopMarginContainer/MarginContainer/HBoxContainer/ParameterInput0/SnapPoint"), SubResource("Resource_00k32")], [NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_6ga3d")]] -[sub_resource type="Resource" id="Resource_43ww6"] +[sub_resource type="Resource" id="Resource_4f6ti"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "I like your" }]] -[sub_resource type="Resource" id="Resource_1byhl"] +[sub_resource type="Resource" id="Resource_3j766"] +script = ExtResource("2_pqvcj") +serialized_block = SubResource("Resource_4f6ti") +path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_fuxxc")]] + +[sub_resource type="Resource" id="Resource_1umkp"] +script = ExtResource("3_dpt5n") +block_class = &"StatementBlock" +serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { +"text": "I cant see you" +}]] + +[sub_resource type="Resource" id="Resource_g5jie"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_43ww6") -path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_cj6kn")]] +serialized_block = SubResource("Resource_1umkp") +path_child_pairs = [] -[sub_resource type="Resource" id="Resource_pmdtx"] +[sub_resource type="Resource" id="Resource_1kkcb"] +script = ExtResource("3_dpt5n") +block_class = &"ControlBlock" +serialized_props = [["block_name", "control_block"], ["label", "Control Block"], ["color", Color(1, 0.678431, 0.462745, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_formats", ["if {cond: BOOL}", "else"]], ["statements", ["if {cond}:", "else:"]], ["param_input_strings_array", [{ +"cond": "" +}, {}]]] + +[sub_resource type="Resource" id="Resource_po3s1"] +script = ExtResource("2_pqvcj") +serialized_block = SubResource("Resource_1kkcb") +path_child_pairs = [[NodePath("VBoxContainer/MarginContainer/Rows/Row0/RowHBoxContainer/RowHBox/ParameterInput0/SnapPoint"), SubResource("Resource_hdcut")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer0/SnapPoint"), SubResource("Resource_3j766")], [NodePath("VBoxContainer/MarginContainer/Rows/SnapContainer1/SnapPoint"), SubResource("Resource_g5jie")]] + +[sub_resource type="Resource" id="Resource_6g1hj"] script = ExtResource("3_dpt5n") block_class = &"StatementBlock" serialized_props = [["block_name", "statement_block"], ["label", "StatementBlock"], ["color", Color(0.6, 0.537255, 0.87451, 1)], ["block_type", 1], ["position", Vector2(0, 0)], ["block_format", "print {text: STRING}"], ["statement", "print({text})"], ["param_input_strings", { "text": "Hi Will!" }]] -[sub_resource type="Resource" id="Resource_qen6q"] +[sub_resource type="Resource" id="Resource_kr5sh"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_pmdtx") -path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_1byhl")]] +serialized_block = SubResource("Resource_6g1hj") +path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_po3s1")]] -[sub_resource type="Resource" id="Resource_tlf5d"] +[sub_resource type="Resource" id="Resource_02ouo"] script = ExtResource("3_dpt5n") block_class = &"EntryBlock" serialized_props = [["block_name", "entry_block"], ["label", "EntryBlock"], ["color", Color(0.941176, 0.764706, 0, 1)], ["block_type", 2], ["position", Vector2(578, 257)], ["block_format", "On signal {signal: NONE}"], ["statement", "func signal_{signal}():"], ["param_input_strings", { "signal": "will_hi" }]] -[sub_resource type="Resource" id="Resource_0rjk1"] +[sub_resource type="Resource" id="Resource_0ivom"] script = ExtResource("2_pqvcj") -serialized_block = SubResource("Resource_tlf5d") -path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_qen6q")]] +serialized_block = SubResource("Resource_02ouo") +path_child_pairs = [[NodePath("VBoxContainer/SnapPoint"), SubResource("Resource_kr5sh")]] -[sub_resource type="Resource" id="Resource_8a7ln"] +[sub_resource type="Resource" id="Resource_t7fnw"] script = ExtResource("4_xt862") -array = Array[ExtResource("2_pqvcj")]([SubResource("Resource_k1r3w"), SubResource("Resource_j1vxs"), SubResource("Resource_uk0rj"), SubResource("Resource_0rjk1")]) +array = Array[ExtResource("2_pqvcj")]([SubResource("Resource_ggn73"), SubResource("Resource_nq5eu"), SubResource("Resource_uaj1y"), SubResource("Resource_0ivom")]) [sub_resource type="Resource" id="Resource_qakr4"] script = ExtResource("5_q37d3") script_inherits = "SimpleCharacter" -block_trees = SubResource("Resource_8a7ln") +block_trees = SubResource("Resource_t7fnw") generated_script = "extends SimpleCharacter var VAR_DICT := {} @@ -435,9 +506,12 @@ func _on_body_enter(body): func signal_will_hi(): print('Hi Will!') - print('I like your') - print(%'Will'.VAR_DICT['hat']) - print('hat') + if bool(%'Will'.get('visible')): + print('I like your') + print(%'Will'.VAR_DICT['hat']) + print('hat') + else: + print('I cant see you') "