Godot Engine

Godot Engine

collisionshape2d question
So I've been making like a test game to get used to the godot engine, and I've picked collisionshape2d and capsule shape, and it's not in the same position as the animated sprite. Is that normal? Here's the node scene, btw.

PlayerNodes
CharacterBody2D
AnimatedSprite2D
CollisionShape2D

Context: the two child nodes of animatedsprite2D and CollisionShape2D are for the CharacterBody2D; it's not a child node for the animated sprite because that will give you an error if someone is wondering.
< >
Showing 1-2 of 2 comments
umop-apisdn Mar 18 @ 12:17pm 
We can't tell what the node structure is, because Steam "fixed" your formatting.
You didn't wrap your text in [code][/code] tags.

I assume it's supposed to look something like this:
Originally posted by Hermit Jester:
PlayerNodes CharacterBody2D AnimatedSprite2D CollisionShape2D

As for your positioning issue, adjust the position of the child nodes to line up with where they should be.
Alternatively, change the "centered" property and/or the position of the AnimatedSprite2D.
Originally posted by umop-apisdn:
We can't tell what the node structure is, because Steam "fixed" your formatting.
You didn't wrap your text in [code][/code] tags.

I assume it's supposed to look something like this:
Originally posted by Hermit Jester:
PlayerNodes CharacterBody2D AnimatedSprite2D CollisionShape2D

As for your positioning issue, adjust the position of the child nodes to line up with where they should be.
Alternatively, change the "centered" property and/or the position of the AnimatedSprite2D.
Ok, thank you for the tip! :steamhappy:
< >
Showing 1-2 of 2 comments
Per page: 1530 50