Objects that follow player's exact position, but they are 1 second behind and stop when player stops?

There are these weapons in Gradius and other shumps, where the weapons follow where you last were a second ago, and when you hold down a button they stay in place, how to do this in 3D?

at 11:59 on this video it can be seen more clearly:

Gradius V (PS2) Full Run with No Deaths (No Miss)

There’s a lot of ways to do it… You can try attaching them to the ship’s actor blueprint and giving them constant motion towards the ship which stops when the button is held, that’s not really all that complicated.

You could also try to be a bit more fancy about it and use physics constraints.

Another one:

  • player ship owns a spline using a world absolute transform
  • when ship tick-moves, update to the last spline point to be at ship position
  • when ship changes direction, add a spline point at ship position
  • objects traverse the spline at (what looks like) constant speed using a timeline, which can be paused
  • trim the spline when it makes sense
1 Like