Global xbox controller object problem..

This forum is currently in read-only mode.
From the Asset Store
Small pixel icons for the 3 most popular controller types.
  • Hi all, does anyone know if there is an issue with the xbox controller object set to GLOBAL across layouts? it seems to crash my preview.

    saved to test caps to see if anyone has the same issue...

    A BUTTON makes a sprite appear, START jumps back and forth between layouts.

    2 xbox controller object instances over 2 layouts = OK!

    https://copy.com/OUtWqa8hP6U1HFEQ

    controller instance set to global = NOT OK!

    https://copy.com/3OYh6nuLc37c3KI9

  • heh ....

    Euhm ...

    You just need to add the controller object to your project once ... and you can reference it in any layout.

    and you dont have to add more controller objects, you reference them in the one object with an index number.

    And .. I've never set it to global ... not even sure whats the purpose for that on that object.

    EDIT: whoops this is contruct classic, sorry, I don't know if this applies there too.

  • I had it crash initially after pressing START (loading and pressing A was fine), but after changing the second layout to switch on the BACK button instead of START it no longer crashes. Is that the same for you?

    If so, then it's mainly because the check for START being pressed is happening so fast it probably triggers on both sheets and that causes a freeze in game logic.

    Changing layouts quickly/pressing both still causes the crash, so I would put a timer variable in that gets reset every time the layout changes and prevents transitioning between layouts for at least a second or two after the new layout has begun running.

    Hope that helps!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • intriguing! Ok I will have a look very soon and see what happens... thanks as always!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)