[SOLVED] Text and array.

0 favourites
  • 7 posts
From the Asset Store
Animated Text
$3.99 USD
With AnimatedText behavior you can make an impression of the text being “typed live”.
  • Hello, a question about texts, why when you press enter a second time the text is not displayed on the screen below the previous ?.

    That is, only the first text is displayed, the second should be displayed below the first but does not.

    I do not understand that I'm doing wrong.

    ---------------------

    dl.dropboxusercontent.com/u/60803633/test.capx

    Write a text, hit enter.

    Write another text, and hit enter.

    The second text should be added to the array and displayed.

  • Works perfectly if you make your text-object bigger..

    It's not high enough to display the line..

  • But the function is the same as "AddLog" in the multiplayer pong game.

    And the array has the same dimensions as in Example pong.

    In the example of pong, the lines are shown each lower than the previous.

    What should I do to make the new text appears below the previous?

  • Make the text-object bigger, set the height of texto to 125 or something like that..

    Your capx is working perfectly fine, but the text can not be displayed, because there isn't enough room in the text-object..

    It has nothing to do with the array..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think is actually that part that say "If arrayTextos X size > 5 | pop front on X axis" that would create the effect you want, Mirlas. The idea is that when the text has to many lines already (more than 5) just delete the top one. Try playing with smaller numbers in that command to see what I mean

  • I think is actually that part that say "If arrayTextos X size > 5 | pop front on X axis" that would create the effect you want, Mirlas. The idea is that when the text has to many lines already (more than 5) just delete the top one. Try playing with smaller numbers in that command to see what I mean

    As I said before, the capx works perfectly fine..

    When more than 5 texts are entered one is popped and 5 lines remain..

  • Ok, solved.

    The problem was that the text object must have more height to display more lines.

    Yes, 5 is the number of lines that can be displayed at once.

    Thanks guys!.

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