Blucard's Forum Posts

  • 2 posts
  • Hello,

    I am currently working on a game project which will be up for sale soon. In the last build, I had perfected joystick controls, but ever since fixing a few bugs with my game's AI, somewhere along the way the gamepad events have gone completely haywire. It seems like Construct 2 is now detecting one gamepad more than however many are connected at all times. I tested this by making a consistently updating global variable that is set equal to Gamepad.GamepadCount and displaying the number on the main menu.

    When there are 0 gamepads, it detects 0. When I connect 1 gamepad, it detects 2. When I connect 2 gamepads, it detects 3. When I disconnect both gamepads, the number goes back to 1 even though there is nothing connected. For this reason, all of the actions in the whole project which reference gamepad 0 do not work because any gamepad connected is either gamepad 1 or 2, and gamepad 0 itself is nowhere to be found. I do not know where this issue came from, any help would be greatly appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm currently working on a top down bullet hell game where enemies chase the player and shoot at him. However, when I add the events that make enemies shoot at a certain interval, it only applies to one of them at a time even though several can be on-screen at once. How can I make them all do the same action?

    Thanks in advance!

  • 2 posts