Hey Guys! I’m new to unreal engine. I’m following a camera tutorial in my top down template. I’m a bit confused, here’s why :
Top down template already have a game mode named MyGame and with the tutorial i’m following along, I’ve created another game mode named MyCameraMode which controls my camera pawn blueprint named MyCamera.
The default game mode set inside the world settings is None. When I set this to MyCameraMode, MyCamera blueprint gets spawned at the player start location and the camera controls work fine.
But how can I spawn my player at the start location and be able to move both my camera and the player(Both blueprints).
As far as I know only one camera mode can run at a time. It is basically the current rules and setup for play that you have setup. You would have to have should have your pawn and controllers already defined in the gamemode.
You would have to create a spawning scenario in your gamemode or level blueprint.
@DJMidKnight in this case I have an RTS style camera which is controlled by the player. I just want to know how can I control the player also. I’ve tried placing the player directly inside the level, but it’s not responding to its controller.
Thanks
@Ghar I want the camera to go anywhere. Just like an RTS game where the player can move over the entire map and also control the players. Hope I explained it better this time.
Cheers
In an RTS game the camera is like the player. So you should have a pawn blueprint with a SceneComponent, a Camera, maybe a Spring Arm. Implement the movement in that blueprint. Then assign this pawn as the player character.
The game mode should not handle the camera movement imo.