I’ve only been working with UE4 for a couple days now. I have hit a snag in my learning process that I’ve been unable to find an answer for.
I created a completely new, blank project with starter content.
I created a few BSP spheres and molded them into a basic shape, and then turned that into a static mesh.
I created a new level, imported that static mesh. Converted it to a blueprint and added some functionality that I thought would allow the player to Rotate that mesh left and right with the arrow keys. But it won’t work.
It does work if I Play the game, click the mesh and Possess it. But I don’t want to have to possess it beforehand.
My blueprint has BeginPlay->Enable Input with a node to Get Player Controller, as recommended in many tutorials.
I also have an Event Tick-> AddActorLocalRotation with a Rotation target based on a variable that is set or cleared when the arrow keys are pressed or released.
The problem is only with the INPUT capturing. My game will not capture the left/right arrow keys until I possess the mesh actor…
This is meant to be a simple top-down view asteroids style learning game where you can rotate the ship in the center of the screen and press a key to fire.
Thanks a ton for any help you can provide!