Possess

Hi yall, I have a main menu widget to start the game. Then once play is clicked the character is spawned into the world, I set none for the default pawn.


Then I get the character camera view and HUD but no way to control the character

Any ideas on what I might be missing would be appreciated, thanks.

Is it a controllable character? Does it have that code in it?

Hi Clockwork, yes the character is controllable. Not sure what you mean by that but he has movement and attack options that worked before I implemented the menu spawn.

1 Like

Ok, just checking, because some people think that inheriting from ‘character’ is enough :slight_smile:

Oh that’s understandable, it works fine if I just let it spawn in as default pawn and without switching my viewport to the main menu at the beginning of the game.

1 Like

I looks ok, just try switching the node order maybe… ‘set input’ before possess?

I think the problem might be the character class is doing too much

Still looks ok :slight_smile:

I just tried this, to put my mind at rest. Mine ( very similar to yours ) works.

The only thing I can think of, is you might be jammed on some scenery.

To avoid that, put a player start in the level, and

1 Like

When it is set as the default pawn I can move him with wasd but I have to hold right click to move the camera
image

Why not try the whole thing with the default 3rd person first. At least then, you can figure out if your pawn is causing problems.

I’m confused why would I create another character this one already works I know the pawn is fine it only broke when I added the main menu component

1 Like

If it doesn’t work when it’s in the game mode, then it seems that something’s wrong.

Anyway, I’m not saying make a new character, I’m just saying, use the default one to find out what the problem is.

This is default first person I just edited the camera on it I don’t have an unedited version of it

1 Like


Most of it is still the standard first person movement but for some reason just wont give me any movement unless default pawn is set and even then it doesn’t give proper mouse input

Here is something else interesting default HUD is none but the debug prints show that an extra is created at the beginning where is it not level bp, not character bp, not gamemode bp.


image

Oh and this is level bp incase that helps because its where I spawn the menu

Ah, take that set view target out…

1 Like

Oh dang, I really thought that was going to work but that view blend is to target the camera for my main menu.


The menu starts with the rotating camera in the scene, and then it spawns the character on the roof

I really don’t know… sorry :confused:

I’ve managed to recreate your problem using spectator as a default pawn class.

Here how I fixed it:

2 Likes