handling multiple player collisions

0 favourites
  • 5 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • So for my fighting game, up to 4 player's can be on screen at one time.

    Each player also has a large variety of moves, air attack, 4 way regular attack, and 4 way special attack.

    I've built my game so that the player controller is a skeleton for each player. the move names have been labeled generically like side attack, and up attack, and up special so that when i obtain the animations for each character, I can drag and drop as much as possible.

    How do I handle it so that when a player selects their character they each can attack each other, rather than saying If player 1 animation > on collision with player 2, or player 1 animation on collision with player 3   etc...

    AND if i have mulitple moves, do I have to make a collision event for each move?

    + Is it better to use image points for attack collision, or full collision boxes (if possible)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I guess I'll have to set it up player by player. But if I have 8 possible fighters, but only 4 player controllers MAX on screen at once, how do I make it so the user can select that character for the player 1-4 controllers?

    I have my actions generic enough (sideattack, upattack, airattack etc.) that each character actions would be simple enough to implement.

  • Bump. Anyone? Please help.   I've been stuck on this forever!

  • Families

    Put an invisible box over each player. Have collision boxes at the point of attack areas.

    then check collision on families and use an owner value as to not cause self attacks :D

  • I guess I need to read on about how to use families! But this does make sense!    Then if I want to give each player individual controls, I would have to use families and ownership for the controls too.

    I'm confused as to how to do the ownership variable though.

    But thank you so much for your response!!!

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