Why is my child actor not following its parent?

hello , i am a beginner and don’t know how parenting work properly so i have this problem where i created an actor and in it it has other child actors when it spawns but the thing is the transform for the parent works fine but for the child it seems like its adding up with its parent for some reason so its always *2

Are you sure the child actor’s relative location remains 0?
EDIT: Well, I mean stays on whatever value it’s on when spawning.

How are you attaching it to its parent? Maybe try AttachToActor?

265015-attachto.png

Try to have the cube be a separate actor instead of a component and attach it to the platform with AttachToActor. It won’t become a child, but will follow the platform’s transform.

It seems that you use Obstacle spawn point transforms, which are in world space, and assign them as relative.

how do i fix it ?
i get your idea but don’t know what to do !

Something like this:

it fixed that issue but it shifted it in the y axis !

That is probably something else going on. Make sure the actor pivots and spawn point locations are all where you expect them to be.