Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

problem creating input zones

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

  • problem creating input zones

    I used the tutorial How To Create a Basic iOS game to create my own GameInfo, but I can't add input zones to it through the ini files or through kismet. I extended the GameInfo from FrameworkGame, can someone point out my problem?

  • #2
    Input zones are very strange. You define them in DefaultGame.ini, and activate them in code.

    http://udn.epicgames.com/Three/MobileInputSystem.html

    Go look at the example that is there for UberMove or whatever, then look at the Epic Citadel's controller with the assignment and operations performed upon the input groups and controls. Assigning MOBILE_AForward to the input key will automagically move your pawn forward. There's one for strafe that can be applied to HorizontalInputKey.

    Good luck!

    Comment


    • #3
      Yeah, I've looked at that... What file do you activate them with? I saw it said sometime about MobilePlayerInput, but couldn't find anything in that file

      Comment


      • #4
        and also, why can't I add them through kismet, shouldn't that work?

        Comment


        • #5
          Originally posted by nickthecoder View Post
          Yeah, I've looked at that... What file do you activate them with? I saw it said sometime about MobilePlayerInput, but couldn't find anything in that file
          It's placed in in the folder called GameFramework (Development/src directory in your UDK install).

          Comment


          • #6
            Yes, I found the file, I just can't find in the file where you activate the input zones

            Comment


            • #7
              Originally posted by nickthecoder View Post
              Yes, I found the file, I just can't find in the file where you activate the input zones

              You don't actually modify that specific file, you use its functionality in other code by calling it's functions, like FindZone("UberStickMoveZone") etc.

              That's done in the Player Controller class.

              Code:
              function SetupZones()
              {
              	// Cache the MPI
              	MPI = MobilePlayerInput(PlayerInput);
              
              	StickMoveZone = MPI.FindZone("UberStickMoveZone");
              	StickLookZone = MPI.FindZone("UberStickLookZone");
              	FreeLookZone  = MPI.FindZone("UberLookZone");
              }
              This is an example... You declare before hand a reference to the MPI:

              Code:
              var MobilePlayerInput MPI;
              and also a few zones:

              Code:
              var MobileInputZone StickMoveZone;
              var MobileInputZone StickLookZone;
              var MobileInputZone FreeLookZone;
              And then when you capture the zones from the ini file, you'll use that to create define actions in the player controller that will act upon when those zones are used. Hope it makes sense =)

              End, oh, you can also define multiple groups to which some zones belong and activate them when necessary, really useful:

              Code:
              function ActivateControlGroup()
              {
              	MPI.ActivateInputGroup("UberGroup");
              }

              Comment


              • #8
                Awesome, thanks!! So does activating the group make all the things in that group appear?

                Comment


                • #9
                  Originally posted by nickthecoder View Post
                  Awesome, thanks!! So does activating the group make all the things in that group appear?
                  That's right.

                  Comment


                  • #10
                    Originally posted by nickthecoder View Post
                    Awesome, thanks!! So does activating the group make all the things in that group appear?
                    have you solved the issue with the input zones ? can you explain a bit to me?, i'm having problem with my input zones.

                    Comment


                    • #11
                      I've been having a few issues with Input zones too I think I understand the basics of how to use them but I can't seem to work out how to make "MOBILE_Fire" activate when ever "UberStickLookZone" is used.

                      Comment

                      Working...
                      X