How do I get text with variables from array?

  • I want to insert in array text containing variables, for example.

    On start of layout - - - set array at (0,0): name&" wins"&points.

    But when I try to put the value in text from array, text doesn't show values of variables name and points.It shows them as text.

    How to do it properly?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • bangoo

    you probably have a problem with quotes... I just tried what you said you did and it worked fine for me...

    you might want to think about using different array values to hold just one piece of information:

    array at (0,0) = name

    array at (0,1) = wins

    array at (0,2) = points

    then to add more people to the array, just change the first index to 1, 2, 3, 4...

  • bangoo

    you probably have a problem with quotes... I just tried what you said you did and it worked fine for me...

    you might want to think about using different array values to hold just one piece of information:

    array at (0,0) = name

    array at (0,1) = wins

    array at (0,2) = points

    then to add more people to the array, just change the first index to 1, 2, 3, 4...

    Thanks a lot, it was a problem with quotes.

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