Announcement

Collapse
No announcement yet.

Why does an unpossessed Character stops movement?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Why does an unpossessed Character stops movement?

    I started from the Sidescroller template and I made this simple Blueprint to change possession between 2 Characters.

    http://puu.sh/cCT6Y/c5bae64989.jpg

    But if I jump with one Character then change possession to the other, then the first one gets stuck in the air instead of falling. Why is that? How can I fix it?
    Last edited by vib; 11-10-2014, 09:02 PM. Reason: mark as solved

    #2
    I guess it still needs a controller feeding it input? Maybe add an AI controller and set that to the current "uncontrolled character".

    But still sounds wierd that falling stops, unless the controller manages the information for states and variables used by the character somehow.

    Comment


      #3
      Yup, it's weird. I was guessing the Character class just doesn't process movement if it checks there are no controllers. But I'm not a scientist.

      I'll try adding the an AI controller as you suggest, thanks for the idea.

      Comment


        #4
        Just adding this for future reference in case anyone with the same problem finds this post. TheSpaceMan was right (thanks!). The Character was working in the beginning since it starts with the default AIController, but unpossessing it loses the AIController so it stops moving. All I did was reassign the AIController after the possession using the Spawn Default Controller node and now it's working fine.

        Here's how it looks now: http://puu.sh/cLJy9/8e1ff51b04.jpg

        Comment


          #5
          Awesome, happy to help.

          Comment


            #6
            Better Solution

            The problem with the last listed solution is that it will still slightly pause the movement. Say, if your character is falling and you do this; they'll pause for a second in the air and then begin falling again. I've found an even more elegant solution to this problem. There's a Boolean in the CharacterMovement component called 'Run Physics No Controller', by setting this to True it will solve the problem.

            Click image for larger version

Name:	control.PNG
Views:	1
Size:	117.4 KB
ID:	1082285

            Comment


              #7
              As far as I can see, you do the possession NOT in a "Level Blueprint"? May I ask you: why so? Because I have the same problem now: have two players that I need to possess between. When I possess from one character to another, the first one, which was unpossessed, stucks right in the animation pose. Attempt to turn on "Run Physics No Controller" gave me nothing, unfortunately.

              Comment


                #8
                Originally posted by LordMorin View Post
                Better Solution

                The problem with the last listed solution is that it will still slightly pause the movement. Say, if your character is falling and you do this; they'll pause for a second in the air and then begin falling again. I've found an even more elegant solution to this problem. There's a Boolean in the CharacterMovement component called 'Run Physics No Controller', by setting this to True it will solve the problem.

                [ATTACH=CONFIG]49204[/ATTACH]
                Thankyou LordMorin, I tried a couple of manual workarounds with no luck till I found this
                My Game Frontier Devblog HERE

                Comment


                  #9
                  Thank you LordMorin

                  Comment

                  Working...
                  X