blueprint

Clamping player movement to viewport in 2D-Topdown-Scroller

  • Exposure: public
  • UE Version: 5.2

Rockshurt

June 21, 2023, 12:09 pm

The project is a topdown game with a helicopter that moves only on the X and Y axis. The camera moves on a spline and a timeline, so that the helicopter can move independent from the camera. I want to restrict the movement of the helicopter to the viewport so that it cannot move outside the screen.

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

1 comment

  • Rockshurt

    June 21, 2023, 12:11 pm

    Please help me with this. The project is a topdown game with a helicopter that moves only on the X and Y axis. The camera moves on a spline and a timeline, so that the helicopter can move independent from the camera. I want to restrict the movement of the helicopter so that it cannot move outside the viewport.