How do I edit the camera angle attached to the character, and how do I make it moveable with the arrow keys
in a top down blueprint
I am new to this and I have big ideas for a nice new game and wanna get into learning and creating
**Hey MultiPlay Gaming!
**
I’m not entirely sure what you are asking for.
If you want to be able to set the rotation at the start,
then in the character constructor, you can set it’s rotation to absolute, and then set the world rotation.
If you want it done dynamically, still set it to absolute rotation, and then call
CameraComponent->SetWorldRotation(FVector(0,0,0)) //Whatever vector you want obviously
Now in terms of the arrow keys, you have multiple methods of binding these to functions.
You can either directly bind them in code, (can not remember how, but it’s easy enough),
or you can go to Edit, Project Settings, Input, and set up an axis input.
Then in your code you can bind which functions go to which axis inputs.
(There are plenty of examples)
If you want to move the character, it is:
AddMovementInput(/*The direction Vector*/, /*The passed value*/);
For the camera, the math is: Camera Position + (Direction * Amount)
Also the brackets are unneeded. :3
I hope this helps!
-