Skip to content

Commit 9290bd0

Browse files
authored
Update add-interactable-objects-to-your-godot-game.mdx
1 parent b540a6d commit 9290bd0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎projects/add-interactable-objects-to-your-godot-game/add-interactable-objects-to-your-godot-game.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ Let’s discuss how to handle collisions using collision shapes in Godot. But fi
125125

126126
With that being said, let’s use these ingredients to make our game come alive!
127127

128-
In your game, add a `StaticBody2D` node to all the items that require a barrier collision. You can do this by clicking on the item in the left panel you want to add it to, then pressing <kbd>ctrl</kbd> + <kbd>a</kbd>, and choosing a `StaticBody2D` node. After that, attach a `CollisionShape2D` node to the `StaticBody2D`. It should look something like this:
128+
In your game, add a `StaticBody2D` node to all the items that require a barrier collision. You can do this by clicking on the item in the left panel you want to add it to, then pressing <kbd>ctrl</kbd> + <kbd>a</kbd>, and choosing a `StaticBody2D` node. After that, attach a `CollisionShape2D` node to the `StaticBody2D`.
129+
130+
It should look something like this:
129131

130132
<ImageZoom src="https://raw.githubusercontent.com/codedex-io/projects/refs/heads/main/projects/add-interactable-objects-to-your-godot-game/assets/staticBodySetup.png" />
131133

0 commit comments

Comments
 (0)