Download

How to keep objects moving at same pace as player?

My setup is like an endless runner. The character is moving full speed ahead in one direction. I want flying enemies to pop up in the sky but they will also have to be moving at the same pace as the character as if they were attached to it. I have thought of a couple ways of doing this but I’d like to see if anyone has an idea which method we be the best. I am gonna have enemies come in from a distance and then once they get to a certain point they are locked at that position but still moving with the character.

Just exactly the same way you are moving them to the player in the first place, and then set their movement speed to be the same as the players once they get within a certain range. Or you could just attach them to the player if thats the effect you are going for, just have a big collision area with the sockets offset away from the character itself.