How do I Update a List from a XY array

Get help using Construct 2

Post » Sat Jun 13, 2015 1:54 pm

Hi,

I have some trouble with the communication between an array and a list.

Basicly what I want is following:

Player creates a spell with following atributes: name, dmg, element
these are then saved within an array. X direction are the atributes / each new spell is inserted at the end of Y

for visual feedback (and spell selection) I want to have a list with one item per spell (Y element) displaying the corresponding atributes.
So I made an "updatespelllist" function wich is triggered when the array is edited.
until there everything works fine. when i update the list with fixed XY values it works.

BUT: I want the list to be updated in the following way:

for each "array.height" - List: add item with the text "array.at(0, loopindex) & array.at(1, loopindex) & array.at(2, loopindex)

wich should create an item with the text "name dmg element"
instead my gets created empty

Can anyone see where my logic doesnt work?

Greetings Henning
B
3
Posts: 7
Reputation: 289

Post » Sun Jun 14, 2015 1:16 am

I do not know... did I correctly understand what you're trying to do...
but... :)
capx> https://app.box.com/s/u3yk0dnwuj7402cg9thm39ighzk90ke9
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Sun Jun 14, 2015 6:23 pm

Oh sry I kind of messed up in the explanation =D
Thank you verry much for time. Unfortunately it was not what I was looking for but I managed to solve my own problem.

Cheers
Henning
B
3
Posts: 7
Reputation: 289


Return to How do I....?

Who is online

Users browsing this forum: Euduardo and 26 guests