How do I Make a team which contains players and player cont

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hello guys, I am making a sports game and I want to make teams roster in it . It is a Cricket game similar to Baseball where every team have 11 players and every player will keep their records (like how many a player scored, matches, out, strike rate etc) too. I know it is possible but i dont know how ! Please help if anyone know!

    ..

    If you can provide a helpful link it will be a great help too !

  • Hey Nav,

    It depends a bit on how you set up your game but what I would do is use an array and give my players a numbered instance variable (1 through to 11) and use that number to add stats to the index of that array (based on the players number).

    For example, say player 11 catches someone out. You then add a point to the array at 11(x) and 1(y). If player 11 strikes out then you could add a point to 11(x) and 2(y) and so on.

    Kind of sounds harder than it is but it is very effective.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank-you a lot GenkiGenga ! Thanks for details! It will help me a lot thankyou. ☺ There will be around 15 players and I will select only 11 in team . Thanks for help!

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