Greetings,
My friends and I are working on a top-down shooter (based off of the top-down camera from the camera technical guide) while trying to learn the Unreal engine, and I could use a little help getting our camera and player controls tweaked to our needs. I have three questions, two of which should be relatively simple to implement, I'm just not very programming minded, the last I'm not even sure is doable, but I figured I would ask.
1) How do I go about changing W, A, S, and D to be relative to the camera and not the player rotation?
Using the code from the camera technical guide, the W key will always move the player forward depending on where the camera is facing, we would like to change it so W always moves the player "up" on the screen, regardless of which way the player is facing. Extending from this, how would I disable jumping and crouching?
2) How do I set up a cross-hair to move with the mouse?
Using the code from the camera technical guide, there is no cross-hair displayed on screen, which hinders aiming. I know how to re-enable the cross-hair, but it shows up centered on the player. I want to set it up so that the cross-hair follows the mouse to make aiming easier for the player.
3) How can I enable Fog of War, and can it be based on the pawn's "vision"?
Essentially, we would like to replicate the limited field of view from a first person perspective in our top-down game by greying out the level and not rendering any players outside of a cone of vision in order to emulate only being able to see what you would in a first person perspective. I could have sworn I saw a gem for greying out anything not immediately around the player on the wiki, but for the life of me I can't find it any more, and even if I could find it, what we want to do is a bit more complicated then that.
We feel the first two questions are essential for comfortable control in game, and while we would very much like to implement the third question, we would understand if it was not doable or far too complicated for an otherwise simple project.
Thank you in advance for any help and advice, it is greatly appreciated.



Reply With Quote



Bookmarks