Announcement

Collapse
No announcement yet.

UMG slider controlling rotation of character?

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

    UMG slider controlling rotation of character?

    Hi, I'm having a little trouble using a slider in UMG to rotate a character.
    Here is an image showing what I've done so far which is definitely wrong, but I'm pretty sure that I'm headed in the right direction. Although don't laugh if its completely wrong.
    Click image for larger version

Name:	SliderIssue.PNG
Views:	1
Size:	98.6 KB
ID:	1144374

    Any body got any ideas?

    Thanks a lot!

    #2
    Haha wait scratch that. I have movement. I replaced player controller with player character. It does only rotate in one direction though regardless of which way the slider moves. I'm going to play about with it and see what i can do, but if its obvious then don't hesitate to tell me because you'll be saving me much time!

    Thanks!

    Comment


      #3
      I can not do this. It's playing games with my mind! helpppp!

      Comment


        #4
        Alright now I've realized that i don't even need to move the slider for the character to rotate, I just click on it and hold and it rotates and then it stops if I release.

        Any ideas?

        Thanks!

        Comment


          #5
          The slider produces a normalized value between 0 and 1. So you're going to need to multiply it by 360.

          Comment


            #6
            Also you're trying to rotate the player controller, which isn't the representation of the player's avatar in the world. You probably want the player's pawn/character.

            Comment


              #7
              Ahhh ok,
              Could you possibly provide me with an example if you're not too busy? its been a while since I've delved in to blueprints so I'm just getting back in to the flow.

              Thanks!

              Comment


                #8
                Yeah i figured that out in the second post. that's how I managed to get movement in the first place. I ended up using player character.
                I'm getting close to key framing it but i really would rather not have to do that.

                Thanks

                Comment


                  #9
                  Now the character just spins mentally out of control.
                  This is what I have and it's literally guess work at the moment.
                  Click image for larger version

Name:	SliderIssue1.PNG
Views:	1
Size:	84.1 KB
ID:	1066616

                  I've tried branches with the condition of A greater than B but it's makes no difference. :/

                  Comment


                    #10
                    Try Set rotation instead of add rotation

                    Comment


                      #11
                      I love you! That worked. That was a good 3 hours of my life gone for one node.

                      Thanks
                      Last edited by AutoLiMax; 02-17-2015, 12:31 PM.

                      Comment

                      Working...
                      X