0 Favourites

Add Player + Player Selection

  • So I am looking for the way I can make to my game 'Player settings' at start, where you can name each player and can add more player's (or delete) to the game.

    I am making mobile game where at first you set to the game how many player's are going to play and what is the name of each players.

    Maybe here is someone who know's how I should do this or do you have any link to ready made template or tutorial for this?

  • You can use input fields and store the names in an Array.

  • You can use input fields and store the names in an Array.

    Thx for your reply. Yes seems one step forward. But I think I need more guidance on this.

    How I make Construct 2 to check how many player's I have in Array and so on.

    Is there any other template or tutorial for whole "Add player" function ?

  • This is a broad topic, since it really depends on how you want your game to work - and even to some degree what distribution platform you're planning on using (NWjs for PC, or a mobile platform, etc).

    I made THIS EXAMPLE for a simple character selection screen. It may have some useful methods for you to implement?

    ~Sol

  • How I make Construct 2 to check how many player's I have in Array and so on.

    You can make a button that sais "Add player", an input field for player name and an Array named "players". Then whenever the user click the button you can push your array with the action called "Push" and store the value from the input field. You'll get the number of players simply by checking the array's length.

  • This is a broad topic, since it really depends on how you want your game to work - and even to some degree what distribution platform you're planning on using (NWjs for PC, or a mobile platform, etc).

    I made dl.dropboxusercontent.com/u/604141/Public%20CAP/C2%20examples/CharacterSelect.capx THIS EXAMPLE for a simple character selection screen. It may have some useful methods for you to implement?

    ~Sol

    OKay thx for your example. It's really good example of Player selection but what I am looking for is "Creating players" as many as I want.

    This game is going to be mobile turn-based board party game and at start needs to tell the game how many players there will be.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • > How I make Construct 2 to check how many player's I have in Array and so on.

    >

    You can make a button that sais "Add player", an input field for player name and an Array named "players". Then whenever the user click the button you can push your array with the action called "Push" and store the value from the input field. You'll get the number of players simply by checking the array's length.

    Okay thank you This was helping me one step forward!

  • Okay thank you This was helping me one step forward!

    Glad I could help. If you need an example capx, just tell.

  • >

    > Okay thank you <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /> This was helping me one step forward!

    >

    Glad I could help. If you need an example capx, just tell.

    Yah <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /> Well if you don't mind, the example would be great !

    I found this tutorial, do you think this is correct way to show who's player's turn it is going on in the game?

    scirra.com/tutorials/1417/r ... ays/page-2

  • Yah <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> Well if you don't mind, the example would be great !

    I found this tutorial, do you think this is correct way to show who's player's turn it is going on in the game?

    https://www.scirra.com/tutorials/1417/r ... ays/page-2

    Here you go: https://dl.dropboxusercontent.com/u/166 ... array.capx

    I can't see that tutorial, since you can't post URLs yet.

  • > Yah <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /> Well if you don't mind, the example would be great !

    >

    > I found this tutorial, do you think this is correct way to show who's player's turn it is going on in the game?

    > scirra.com/tutorials/1417/r ... ays/page-2

    >

    Here you go: dl.dropboxusercontent.com/u/166 ... array.capx

    I can't see that tutorial, since you can't post URLs yet.

    Thx for example. I have problems to open it because I have no latest version of Construct 2 because it's not working on my windows unfortunatly :\

  • Thx for example. I have problems to open it because I have no latest version of Construct 2 because it's not working on my windows unfortunatly :>

    Rename the file to a .zip then extract it. Open the .caproj file with notepad and edit the "<saved-with-version>23300</saved-with-version>" line to the version you have (for ex. 22700 for the previous sable). It should work without issues since it's a very simple example.

  • > Yah <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /> Well if you don't mind, the example would be great !

    >

    > I found this tutorial, do you think this is correct way to show who's player's turn it is going on in the game?

    > scirra.com/tutorials/1417/r ... ays/page-2

    >

    Here you go: dl.dropboxusercontent.com/u/166 ... array.capx

    I can't see that tutorial, since you can't post URLs yet.

    Super! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /> Thank you very much now I can procceed <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
[plugin] Youtube player
175 20,552
rexrainbow's avatar
rexrainbow
Unread hot topic
44 5,867
hxe's avatar
hxe
Unread hot topic
36 2,393
runfish's avatar
runfish