diff --git a/addons/block_code/blocks/graphics/viewport_center.tres b/addons/block_code/blocks/graphics/viewport_center.tres index 3779ce21..e3b65041 100644 --- a/addons/block_code/blocks/graphics/viewport_center.tres +++ b/addons/block_code/blocks/graphics/viewport_center.tres @@ -5,7 +5,7 @@ [resource] script = ExtResource("1_rc1so") name = &"viewport_center" -description = "" +description = "Coordinates of the middle of the viewable screen when playing." category = "Graphics | Viewport" type = 3 variant_type = 5 diff --git a/addons/block_code/blocks/graphics/viewport_height.tres b/addons/block_code/blocks/graphics/viewport_height.tres index 789de6d6..50dcf640 100644 --- a/addons/block_code/blocks/graphics/viewport_height.tres +++ b/addons/block_code/blocks/graphics/viewport_height.tres @@ -5,7 +5,7 @@ [resource] script = ExtResource("1_1debb") name = &"viewport_height" -description = "" +description = "How tall the viewable screen is when playing." category = "Graphics | Viewport" type = 3 variant_type = 3 diff --git a/addons/block_code/blocks/graphics/viewport_width.tres b/addons/block_code/blocks/graphics/viewport_width.tres index ceb30730..39ba35aa 100644 --- a/addons/block_code/blocks/graphics/viewport_width.tres +++ b/addons/block_code/blocks/graphics/viewport_width.tres @@ -5,7 +5,7 @@ [resource] script = ExtResource("1_ll4rh") name = &"viewport_width" -description = "" +description = "How wide the viewable screen is when playing." category = "Graphics | Viewport" type = 3 variant_type = 3 diff --git a/addons/block_code/blocks/input/characterbody2d_move.tres b/addons/block_code/blocks/input/characterbody2d_move.tres index 07614611..688ff5af 100644 --- a/addons/block_code/blocks/input/characterbody2d_move.tres +++ b/addons/block_code/blocks/input/characterbody2d_move.tres @@ -6,7 +6,7 @@ script = ExtResource("1_btxic") name = &"characterbody2d_move" target_node_class = "CharacterBody2D" -description = "" +description = "Move the character up, down, left, and right with the keyboard using the given keys. The speed of movement can be adjusted separately for x (left and right) and y (up and down)." category = "Input" type = 2 variant_type = 0 diff --git a/addons/block_code/simple_nodes/simple_character/simple_character.gd b/addons/block_code/simple_nodes/simple_character/simple_character.gd index dffaff35..90987be1 100644 --- a/addons/block_code/simple_nodes/simple_character/simple_character.gd +++ b/addons/block_code/simple_nodes/simple_character/simple_character.gd @@ -129,6 +129,13 @@ static func setup_custom_blocks(): block_definition.category = "Input" block_definition.type = Types.BlockType.STATEMENT block_definition.display_template = "Move with {player: OPTION} buttons as {kind: OPTION}" + block_definition.description = """Move the character using the “Player 1” or “Player 2” controls as configured in Godot. + +“Top-down” enables the character to move in both x (vertical) and y (horizontal) dimensions, as if the camera is above the character, looking down. No gravity is added. + +“Platformer” enables the character to move as if the camera is looking from the side, like a side-scroller. Gravity is applied on the x (vertical) axis, making the character fall down until they collide. + +“Spaceship” uses the left/right controls to turn the character and up/down controls to go forward or backward.""" # TODO: delta here is assumed to be the parameter name of # the _process or _physics_process method: block_definition.code_template = 'move_with_player_buttons("{player}", "{kind}", delta)'