How do I make efficient coop keyboard controls?

0 favourites
  • 1 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • I'm working on a small coop game that uses just the keyboard.

    Player 1 will use WASD and player 2 will use the numpad.

    The players are in a family with a platform family behavior, they also have a variable to ID which player is P1 and P2.

    What I have been trying to do is reduce the amount of redundant events by having 1 set of control events for both players and using keycode variables to determine which key is pressed.

    However this makes both players move regardless of whose keys are pressed. Neither of them have default controls set either.

    How would i go about assigning the correct key presses to the correct player object?

    I feel like i'm close but just can't quite get there.

    Is there a way to do this or should I just copy and paste the events twice and change the player object?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)