ollowing Unreal tutorials I am trying to create an endless runner game. I implemented 3 lane movement system (Thanks to unreal forums) which enables a character move only in 3 positions. For movement I am getting world location of capsule component and adding a fixed value from an array of 3 values to y direction [-150,0,150]. it works perfectly but my camera is moving with the character please see attached gif. As work around I used to get world location of mesh component and then add movement to it. now camera is not moving but character is dying even when is in another lane which doesn’t have any obstacles as
]capsule component is staying in middle and mesh is moving as we give output to it. My guess is capsule box which hold character mesh is remaining in center and mesh/sekelton mesh is moving as we give input. how can I make this work so that whole capsule component can move as I give input but camera must not be effected.
It’s best to avoid using event tick when possible, and this problem can definitely be solved without using event tick. Using the method I mentioned above will work quite easily. You just make sure the spring arm isn’t under the capsule as a child, and then move capsule only.