Announcement

Collapse
No announcement yet.

Swipes

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

    Swipes

    Hi folks,

    Is there any plan to add in some of the input functions like Swipes from UDK to UE4?

    I'm going to tinker with Blueprint but if there is a plan to port over more functions that'd be awesome.

    All the best

    Greg

    #2
    Swipes are not built in yet, but you can add support in a Blueprint. Here is how I just set it up.

    Attached Files
    Last edited by Midnight_Toil; 03-29-2014, 04:54 AM.

    Comment


      #3
      Thank you for that we have also been trying to create a swipe in our games.
      Add my Skype
      Developers and Newbies Chat Group
      I build games for a living, But most of all I build them for my passion

      Comment


        #4
        Originally posted by Shane Caudle View Post
        Swipes are not built in yet, but you can add support in a Blueprint. Here is how I just set it up.

        [ATTACH=CONFIG]130[/ATTACH]
        Thats brilliant Shane much better than my attempt, i originally uscripted this for my last project so its really nice to see it in Blueprint.

        All the best

        Greg

        Comment


          #5
          Thanks!!! Greate swipe implementation.

          Hi, I have done this; Shane Caudle post this: (Unreal Engine Developer) Swipes are not built in yet, but you can add support in a Blueprint. Here is how I just set it up. https://forums.unrealengine.com/atta...1&d=1396083248


          but is only registering the down swipe everywhere I move the mouse or touch input.
          Last edited by Roy; 04-08-2014, 06:47 PM. Reason: It only work for down

          Comment


            #6
            Originally posted by Roy View Post
            Thanks!!! Greate swipe implementation.

            but is only registering the down swipe everywhere I move the mouse or touch input.
            I'm not exactly sure what you mean, but if you recreated what I did in the shot, it works correctly, I'm using it now.

            Comment


              #7
              Shane Caudle I have find the bug, it was a wrong variable.
              sorry for the time and Thanks!!!

              Comment


                #8
                Thanks! can somebody scribble over this explaining what each part does? I'm pretty new to visual scripting and would appreciate the lesson and I'm sure others would too!

                Comment


                  #9
                  Originally posted by Kiyan View Post
                  Thanks! can somebody scribble over this explaining what each part does? I'm pretty new to visual scripting and would appreciate the lesson and I'm sure others would too!
                  Ok Kiyan, I made a new version with more info, how is this?

                  FYI, I had them raise the image size limitation on images posted to the forums. You can now post images up to 65kx65k resolution, and 5 megs in size.
                  Attached Files
                  Last edited by Midnight_Toil; 05-12-2014, 01:13 PM.

                  Comment


                    #10
                    Originally posted by Shane Caudle View Post
                    Ok Kiyan, I made a new version with more info, how is this?

                    FYI, I had them raise the image size limitation on images posted to the forums. You can now post images up to 65kx65k resolution, and 5 megs in size.


                    Thanks Shane, Is there a way to check for a 2 finger swipe? I want to pan my camera(top-down/rts view) using 2 fingers...

                    Comment


                      #11
                      Hi Shane Caudle Thanks for the post. I have some doubts because i'm a newbie to blueprint
                      1. What is "TouchStart2dVector"? is it a variable? Then What is the type?
                      2.At the end after SET is the nodes going to a finish Execute? If not where is it going?
                      3.This is not regarding swipe its about pinch...
                      I want my actor to move forward when i pinch on the screen. I almost got that by assigning it on the input the actor keeps moving after pinch I want it to stay until i pinch again. Can anyone help me on this Please
                      Thanks
                      Last edited by AgentGhost; 07-23-2014, 08:38 AM.

                      Comment


                        #12
                        Hi AgentGhost, Yes, TouchStart2DVector and TouchEnd2DVector are both variables of the type Vector2D under Struct.
                        Yes, after Set, the flow will continue on to whatever you want.
                        As for only moving while pinching, you should have a variable that is only true when you are pinching. Then, use this variable to determine whether you guy should move or stand still.

                        Comment


                          #13
                          Hi Shane !
                          First of all thanks for what you did in BP ! It's awesome
                          I still have probleme reading this image :
                          I would like to know of which type of variable is the swap direction so you can set right left etc and to what is are they connected after that? To an "add controller pitch & yaw input" ?

                          Thanks in advance !

                          Denis

                          Comment


                            #14
                            I'm also new to UE and have a couple of follow up questions:

                            - How can I set the swipe direction to left, right, up, down (as you have at the end of your blueprint example)? Is it something that needs to be mapped in Project Settings - Input, and how exactly do you do that?

                            - How do you use the mouse to test the swiping motion? (Is there anything beyond checking 'Use Mouse for Touch' in the Input settings?)

                            Thanks!

                            Comment


                              #15
                              I was also struggling with this and finally figured out a fairly nice method. I still have to work easing in, but I thought I would share it with everyone. It involves 2 blueprints: one for swipe controller and one for the ground. In the swipe controller there is also a custom function added. This allows swipe to look tap to move. It seems to work well on android, I didn't test on ios yet.

                              Click image for larger version

Name:	swipecontroller_blueprint_eventgraph.jpg
Views:	1
Size:	575.4 KB
ID:	1057903Click image for larger version

Name:	swipecontroller_blueprint_eventgraph_closeup1.jpg
Views:	1
Size:	449.4 KB
ID:	1057904Click image for larger version

Name:	swipecontroller_blueprint_eventgraph_closeup2.jpg
Views:	1
Size:	509.4 KB
ID:	1057905Click image for larger version

Name:	swipecontroller_blueprint_movehitlocation_function.jpg
Views:	1
Size:	598.2 KB
ID:	1057906

                              Comment

                              Working...
                              X