playMaker

Author Topic: Help With Getting an Array to Display as a Scoreboard?  (Read 476 times)

Wrensey

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Help With Getting an Array to Display as a Scoreboard?
« on: January 09, 2019, 12:42:40 AM »
Hello!

I am currently working on setting up a scoreboard in my game and I have a playmaker array that stores player score values.

I would like these values to display vertically in a UI panel. I can get the array to display in a text box with the values sorted by highest, but is there a good way to make them display vertically in a text box rather than horizontally.

So instead of the array text displaying like this:
400, 300, 200, 100

It will always display like this:
400,
300,
200,
100

I know I can fiddle around with the text box dimensions to achieve this effect, but sometimes it cuts off longer or shorter numbers.

I would also like the values to display without the commas between them if that's possible.

Thanks in advance!
Follow me on twitter!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5546
    • View Profile
    • jinxtergames
Re: Help With Getting an Array to Display as a Scoreboard?
« Reply #1 on: January 09, 2019, 07:34:49 AM »
Hi,
maybe you can use a different approach like in this tutorial :


Wrensey

  • Playmaker Newbie
  • *
  • Posts: 16
    • View Profile
Re: Help With Getting an Array to Display as a Scoreboard?
« Reply #2 on: January 09, 2019, 10:28:31 AM »
Thanks Djay, I'll check that vid out!
Follow me on twitter!