Forum rules - please read before posting.

Can't move the player up and down

edited August 2017 in Technical Q&A
I've been following a youtube tutorial on scene set up and character creation for AC, this one in particular:

I created all of my animations which work just fine. I also made a 2D NavMesh to try out my character, but when I play the scene, the character won't move up and down, just left and right.
The messages shown on the console are:
PlayerPrefs Key "AC_AdventureCreator_Demo_0" loaded
PlayerStart "PlayerStart2D" has no camera on start.

Comments

  • Welcome to the community, @pauxxx.

    The error message is alerting you that your PlayerStart has no associated camera.  Each PlayerStart in a scene needs a camera, so that the game knows which camera to start from.

    In your Scene Manager, make sure that your created PlayerStart is assigned as the Default PlayerStart under the "Scene settings" panel.  You can then assign an associated camera from the Default Camera field.  You can click "Create" to the right of the "Default Camera" field to automatically create and assign one.

    If you still have trouble with your character, try testing the 2D Demo game's Player prefab, Brain2D, by dropping him into your scene and running it.  If he runs OK, but yours doesn't, post some details about your player prefab so that we can see what's wrong.  If he doesn't run OK either, post some details of both your Scene and Settings Managers, which should help us get to the bottom of it.
  • Thanks for  the fast reply. Adding a NavCam didn't solve the problem. I tried adding Brain2D SpritesUnityComplex.prefab to the scene and he does the same, it only moves along the X axis and also ignores the limits of my NavMesh' polygon collider.
    The console is showing this message:
    In order to move a sprite based character in 3d, there must not be a rigidbody 2d component on the base.
    player cannot find sorting map to follow.

  • Also, in the AC game editor scene screen, under default navmesh, I found this message: this method is only compatible with unity2d mode.
  • Nevermind, looks like my camera was set to 3D mode, turning it to 2D solved the problem.
  • You'll have to replace your GameCameras in the scene with GameCamera2Ds, in that case.  The prefabs available in the Scene Manager will vary according to what camera perspective your game is set to use.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.