List won't show elements beyond the index of 9

Get help using Construct 2

Post » Fri Sep 13, 2013 2:34 am

Hi Guys

I'm having a slight problem with retrieving elements from an array and displaying them in a list. I've noticed that elements beyond 9 (10,11,12) won't show. I've included a few pictures

Here is the code



Clicking on potion



Clicking on Armour. Note, they're selectable but they are not shown



I've also tried to use,(x,y) style of setting them in the array but this way would not let the jlist show the elements.

Thanks in advance!
zoddTHEimmortal2013-09-13 02:36:13
B
5
Posts: 13
Reputation: 676

Post » Fri Sep 13, 2013 2:37 am

You need to set the size of the array. The default is (10,1,1). Select the array and look at the properties tab on the left. You can also set the size in an action: Set size.
ImageImageImage
B
71
S
21
G
233
Posts: 3,697
Reputation: 130,370

Post » Fri Sep 13, 2013 2:38 am

Ahh I knew it would be something like this. Thank you!
B
5
Posts: 13
Reputation: 676


Return to How do I....?

Who is online

Users browsing this forum: ChesVCF, LaDestitute, OBLIVION, yiuyiu6666 and 26 guests