I created a player using a blueprint class (character). I set the gamemode properly, but when I start the game I spawn in the camera viewport (not in the position of the character blueprint); However, with the input of the character blueprint. How do I start the game where I placed my player (blueprint class character)?
alt text
I believe what you are looking for is the PlayerStart actor.
The ability to spawn a player into the world at any location is a very useful feature for any game. Unreal Engine 4 offers a special Actor that will allow you to do this called a Player Start. A Player Start is just that, a location in the game world that the player will start from.
I tried to use the player start, but I found the problems:
- Placing it in a certain area, the player start falling through the ground. I noticed that falls precisely in the location 0,0,0 in the world. Why? (the ground has the collision)
- By using the player start, I can not change it with the blueprint, to change the input axis, as I did with the blueprint class character?
-
Try placing the PlayerStart actor slightly in the air.
-
I’m not completely sure I am understanding you. The PlayerStart actor shouldn’t affect your player input. The PlayerStart actor just gives your level a start location for the player.
1 ) Placing the Player_Start just above the floor , still it falls through the box . But one thing I noticed :
the initial position of the player start is under a platform with a stair ( a static mesh) ; if I start the game with the player to start under this platform , I fall through the floor , but if I move the platform with stair from above the player start at another point , the game starts properly . Where is the problem?
2 ) I wish I could change the input Player_Start using the blueprint , but unlike the class blueprint character , I can not .
Had the same problem. Fixed it! Had a huge Sphere around my map as space with stars and stuff. I had over 6000 objects on this map and was overseaing that a second such sphere was placed. I don’t know why, but this second sphere was causing me spawning at 0.0.0 when “play from here” from anywhere. And when Play from an Player Start only the anmiations started and I was just in the editor mode again. Straaaange… But deleting this sphere fixed it. Strangly enough, the sphere was an exact copy of the first one, which does work fine when placed stan alone!? I’ve checked every blueprint, anything. Basically was working two months to fix this. And it was a **** sphere…