Making an actor not budge from collisions while moving along x axis

I am working on an endless runner where there are many obstacles that are meant to travel at the same speed towards the player and if the player does not climb over them it is pushed off the stage with them. The issue is if I simply move the objects all at once then when the player collides with them they move rather than the player being moved. If I use the interpolate behavior, I get the desired collision, but since the obstacles are all different distances away (They have to be because I am spawning more elaborately than just single platforms) they move at different speeds depending on how far they. Any Ideas? Thanks in advance.

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    @austinmackrell said:
    . . . since the obstacles are all different distances away (They have to be because I am spawning more elaborately than just single platforms) they move at different speeds depending on how far they. Any Ideas? Thanks in advance.

    Maybe just throw some maths at the 'duration' setting to make them move at the same speed.

  • austinmackrellaustinmackrell Member Posts: 1

    Tried that couldn't get it working, ended up making it an immovable object and changing its position through a timer, worked perfect! Thanks for the idea though @socks

Sign In or Register to comment.