Skebab's Forum Posts

  • Now when I am debugging my game I will find every card on their own Array cells. But I cannot set text to be visible. Maybe you can find out why?

    Probably because the textobject is way to small.

    If you share a project. Plz save it as a single file.

    File menu > Save As Single File.

    Wow thank you very much ... that was it! Now text is showing so after all it was working all the time but textobject was way to small. Even it was looking to have enough space at layout editor.

    You solved my problem 99Instances2Go ! Thx

  • Hi,

    Okay I am really glad you help me.

    Try this URL, will it works better?

    #https://drive.google.com/drive/folders/0B21BkWRH8AF0OVpxYlc3d1BkU2c?usp=sharing

  • Okay I dont know other way to share capx, I hope this will work:

    drive.google.com/drive/folders ... sp=sharing

    Thank you very much for taking me forward with this! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

  • Skebab

    1st Have you created any Text on layout? if not how you will see it

    2nd If you did create Text on Layout, did you set property of Text to be VISIBLE

    3rd If you did not create Text on Layout how can you see the TEXT?

    Thx for your reply Lordshiva.

    1) Text is on Layout and set Visible

    2) Debug mode shows that there is all values nicely in own cells in arrays

    3) I have succeeded to get system randomly pick one of the values from array

    PROBLEM) I just cannot get this value showed at TEXT on layout ????

    Instead what I have got working is that I get only numbers showing in layout where text should be showen by editing code.

    Sometimes I have even got first text value showed in layout but if system pick up some other cell than array nmbr. 0 it will show only blank.

    Here is my code now:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Skebab This tutorial might help you

    https://www.scirra.com/tutorials/1418/trivia-game

    https://www.scirra.com/tutorials/1417/r ... -as-arrays

    Thank you ! I think these helped me to clear my ''code''.

    Now I have done I think everything I can as following your Trivia Tutorial. I dont have any answer options on my game so I tryed to find out what I dont need.

    Now when I am debugging my game I will find every card on their own Array cells. But I cannot set text to be visible. Maybe you can find out why?

  • Thx for your quick reply. This was good sample. Still I cannot solve my problem which was near by your solution.

    Now I have problem that my Array has values loaded from textfile. But my game is appending text as numbers.

    Something is wrong. Someday I will laugh to this but today I don't know how to use arrays smoothly

    Don't pay too much attention to commentlines as I have moved few actionlines places so it's messy.

  • I have searched whole internet but cannot find exact info for this step. How I can just simply Load random question from array and display it on screen?

    I have array created already. Anymore I need to get my game pick randomly on start of the layout one text from array.

  • > 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" />

  • > 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 :\</p>

  • >

    > 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

  • Keep in mind, you can't have global objects on global layers, otherwise they'll get duplicated everytime you change layout.

    Thank you for telling this !

  • Search for "Global Layers" in the manual. There are also global objects - which are described in the manual as well - but the global layers will be better suited to what you describe.

    Super, thank you very much! This was the thing I was looking for

  • Okay we have global variables, but how about global object. Let's say I make 50 layouts (levels) which all have same logo included left corner into each layout/level.

    One day I wanna change the logo. Do I have to go through all 50 layouts/levels or is there easier way?

    As Website developer we have 'php Include' -command for that how about Construct 2?

  • > 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!

  • 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.