Announcement

Collapse
No announcement yet.

GamePad example and what AMS can do for you

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

  • GamePad example and what AMS can do for you

    A few people awhile back worked on a means to get the game controller to work in AMS I wanted this to fix a bug in AutoGame, my game engine I making in AMS with touch screens I thought enable controller support, well so far so good.

    Here is a a demo I was using to probe the returns from AMS, I am using timers so if you really wanted to use this in a game you made I would say you need a mulithread plugin, a timer plugin and maybe a draw or open gl plugin, but anyway I gone off track.

    Here is a demo you can move with the DPad and the left thumb stick, this demo does not have the bug my game engine as, as this demo only detects if your over the apple mine detects if your over, under, or blocking and also checks for actions.

    The timer is not really the perfect way to get the call back all the time but it will do for little arcade games.

    You do need Memory EX plugin for this demo to work, great work IP, and great work to the other users that posted the JOYINFOEX function

    GamePad Demo.apz

    I have Only tested this with a Xbox 360 Controller with Wireless Controller Connecter and a Xbox One controller with USB Wire

    But I sure the X, Y and Dpad should be the same, only thing I could see a problem with is the buttons but this can be sorted by just letting the user map the buttons.
    Plugins or Sources MokoX
    BunnyHop Here

  • #2
    I have done some updates to the demo, now you are able to move about, collect Apples once you have collected the Apples it will end the game and close the app, it will also close the app if it can't find a controller.

    if you click the Enable Controller ID Checker soon as the app opens it will over ride the closeing app if no contorller found on 0, you can then go throw the 0 to 15 channels to see where your controller is hiding or if you have more then one controller and want to check another how there both plugged in this option should also be used.

    PS, for some reason the Xbox One and the PS3 Wired controller 'Gioteck VX2 Wired Controller(Ps3)'

    Since the Xbox 360 and Xbox One Controller A button is on 1 and The PS3's X is on 4 I have made the demo to work on X(4) and Triangle(1) on the PS3 Wired and X(4) and A(1) on the Xbox Controllers

    Collect all the Apples red Apples, and pick up the Green apple, like I said above pick up the apple with A or X depending on the controller tho X should work on Both Controllers.

    Controllers that don't follow this button set up I can't say, Also The Z is the left trigger on the Xbox and is the Right thumb stick on the Gioteck VX2 Wired Controller(Ps3)

    If you collect all the red Apples it will tell you to then collect the green apple, this is a very basic demo and I still learning myself from what this can do.

    Game Requirements
    A controller wired or wireless with a dongle
    Windows, I only tested it on Windows 8 but sure it will work on all from XP
    AutoPlay Media Studios 8x
    Imagine Programming MemoryEx is a plugin Here

    and last but not least the demo

    Demo#2.apz


    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #3
      Amazing work kingzooly sent you a pm

      Comment


      • #4
        Since your request would help everyone here I going to reply here, I have not yet found away to control the mouse or loop throw selecting objects with the controller, I know there was no demo with the controller support the code to detect the controller was there but no one ever took it that next step so sorry if I am not doing it right, I am trying my best to understand it.

        I am not the best at these things as I sure it going to have to be some kind of table and loop when you press down it seletes a table what then actavates a given image and so on, I am not great with tables.

        But what I would say to try is try and have your menu items in a table when you open the menu the first item becomes active when you press down have it selete the next table and activate it, also you can have what ever action you want saved in the stable and then use the code I use on A button to fire the command.

        It looks like you are trying to make a game in AMS if you are share a demo, show people what your doing, so many have said they are doing it but never then show it so AMS does not get the love it needs

        Controller movement for sprite as also already been added to my AutoGame Framework but since this I found better ways to do things in this demo what I have not yet added to AutoGame.

        P.S no need to PM me for things like that getting everyone on board is the better means
        Plugins or Sources MokoX
        BunnyHop Here

        Comment


        • #5
          Thanks for the info kingzooly i am making a game but using autoplay just for the menu as it has some cool functions, i will mess around with it but thanks again for the reply.

          Comment


          • #6
            This is what I was going to do many times in the past with RPG Maker and FPG Maker and there new tool they have as all of them are bad on menu support but then I opted to try and make AMS do more then just a menu lol

            Be warned tho DON'T offer more controller options in your menu then the game can offer as you will get some upset game players lol
            Plugins or Sources MokoX
            BunnyHop Here

            Comment


            • #7
              lol yea the game already has controller support that's why when i saw your post i was like wow but as it stands i am the other way round control in game and not in the menu. I have used RPG Maker before it was good but i hated the cap on the resolution i think it was 580x600 or something like that.

              Comment


              • #8
                Originally posted by smithy View Post
                lol yea the game already has controller support that's why when i saw your post i was like wow but as it stands i am the other way round control in game and not in the menu. I have used RPG Maker before it was good but i hated the cap on the resolution i think it was 580x600 or something like that.
                The RPG Engine for AMS I put a cap on of 800 by 600 well what ever them two are as a multiple of 32 as I don't know how to strech the app without braking the app lol the maths don't work that well should I say my maths don't work that well
                Plugins or Sources MokoX
                BunnyHop Here

                Comment


                • #9
                  Just a update, this still works with xbox and xbox one controllers(all I have tested with) and it still works with the updated version of MemoryEx
                  Plugins or Sources MokoX
                  BunnyHop Here

                  Comment


                  • #10
                    Update on this, tho the timing is really bad on the timer but I am able to control the mouse and do left and right click, this only works single actions as the timer brakes the option to detect if it's been help so dragging and button been held don't work but it's able to do alot more then it used to do, I will update the demo later to include the mouse movement.

                    I am trying to find much better ways to do this and I have asked the forum if we can poll the controller as on key rather then timer.
                    Plugins or Sources MokoX
                    BunnyHop Here

                    Comment

                    Working...
                    X