Perspective/Interface

Keyboard/mouse control top down movement



Open a topdown game template
Open Project setting, input, action mapping, add move forwrad, bacward, right, left button as WSDA
image.png

Create a BP pawn called BP cameraPawn
Add spring arm and camera component
spring arm details: rotation -50, target arm lenght 1200, tick enable camera lag and rotations, both speed as 5 (camera lag is to smooth out the camera movement)
image.png
image.png

Create a Game mode and Controller BP called BP_CameraGameMode, and BP CameraController,
set Gamemode class of controller, pawn and gamemode:
image.png
image.png



For Camera Controller graph:

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.