TheDark_Lord's Forum Posts

  • 5 posts
  • How do I make a scroll opportunity in Text object.

    I've got a long text that is too long to be fully visible on the screen, therefore, I need this magic thing like scrolling. Is it possible to create one and how to do it?

  • Thank you so much! It really helped me. Thanks.

    As mentioned in my previous answer the array size by default is 10.

    It means, by default and without further action on your part, it can only contain up to 10 elements.

    So when you try to put question 11 in the array, there is simply no room for it.

    The fix is very simple, in LoadQuestionsFromString, add a blank sub-event before the "each question" loop.

    Have this blank sub-event have the action QuestionsArray: Set size to (number_of_questions, 1, 1) and your array will fit the actual number of questions you are trying to put in.

  • I've figured it that the problem appears when variable 'number_of_questions' is more than 9 (10 and greater) but I really dunno what's exactly going wrong.

    Maybe something going wrong with array or random or with reading file. Could you plz figure that out.

    I can do whatever u want to fix the issue - just have a look at my file - I've attached the link to the Dropbox above.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes here u go

    the link for the project on my Dropbox: dropbox.com/s/spalj8chmyd85to/Trivia.capx

  • I'm tryna read info from a .txt file (I've attached pics of my code below):

    here Ajax completed

    here Loadin' info

    My txt file's got a structure like this:

    Here'sWrittenAQuestion;

    Answer1;

    Answer2;

    Answer3;

    Answer4;

    RightAnswer;

    |

    and so on ('|' - it separates questions, ';' - it separates answers)

    (I'm working on a trivia game)

    So this method works really great with question from 0 through 9 but when it other nums starts like 11, 12, 13 (double figures) it doesn't work. I've got none.

    Could you please help me with this.

  • 5 posts